mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Add guard in SQlEditorStore
This commit is contained in:
1 parent
7cb722dff0
commit
25cdb2dc2d
1 file changed
+1
-1
@@ -255,7 +255,7 @@ class SqlEditorStore {
|
||||
async loadKeywords() {
|
||||
const query = 'select * from pg_get_keywords();'
|
||||
const response = await this.meta.query(query)
|
||||
if (!response.error) {
|
||||
if (response && !response.error) {
|
||||
this.keywordCache = response.map((x) => x.word.toLocaleLowerCase())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user