Skip to content

Commit 58a4e73

Browse files
authored
Fix: small Sentry error for undefined value (supabase#40874)
fix sentry error
1 parent 38ecb59 commit 58a4e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/studio/data/database/retrieve-index-advisor-result-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ export const useGetIndexAdvisorResult = <TData = GetIndexAdvisorResultData>(
5656
typeof projectRef !== 'undefined' &&
5757
typeof query !== 'undefined' &&
5858
(query.startsWith('select') || query.startsWith('SELECT'))) ||
59-
query.trim().toLowerCase().startsWith('with pgrst_source'),
59+
(typeof query === 'string' && query.trim().toLowerCase().startsWith('with pgrst_source')),
6060
...options,
6161
})

0 commit comments

Comments
 (0)