The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(sql-editor): missing useEffect deps
Greg Richardson5e075e17556f
diff --git a/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/studio/components/interfaces/SQLEditor/SQLEditor.tsxindex 386d955efee..9757e2566c8 100644--- a/studio/components/interfaces/SQLEditor/SQLEditor.tsx+++ b/studio/components/interfaces/SQLEditor/SQLEditor.tsx@@ -228,11 +228,7 @@ const SQLEditor = () => {return}- if (- supabaseAIEnabled &&- !hasHipaaAddon &&- snippet?.snippet.name === untitledSnippetTitle- ) {+ if (supabaseAIEnabled && !hasHipaaAddon && snippet?.snippet.name === untitledSnippetTitle) {// Intentionally don't await title gen (lazy)setAiTitle(id, sql)}@@ -244,7 +240,7 @@ const SQLEditor = () => {})}},- [isDiffOpen, id, isExecuting, project, execute, setAiTitle]+ [isDiffOpen, id, isExecuting, project, execute, setAiTitle, hasHipaaAddon, supabaseAIEnabled])const handleNewQuery = useCallback(