From 86a5ef8f2e828798f5ad8afb1142dcc6dfe685da Mon Sep 17 00:00:00 2001 From: Greg Richardson Date: Wed, 9 Aug 2023 09:41:44 -0500 Subject: [PATCH] fix(sql-editor): put ai title gen behind feature/hipaa flags --- studio/components/interfaces/SQLEditor/SQLEditor.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/studio/components/interfaces/SQLEditor/SQLEditor.tsx index d065b427dfb..da0d3f21426 100644 --- a/studio/components/interfaces/SQLEditor/SQLEditor.tsx +++ b/studio/components/interfaces/SQLEditor/SQLEditor.tsx @@ -222,7 +222,11 @@ const SQLEditor = () => { return } - if (snippet?.snippet.name === untitledSnippetTitle) { + if ( + supabaseAIEnabled && + !isHipaaSubscription && + snippet?.snippet.name === untitledSnippetTitle + ) { // Intentionally don't await title gen (lazy) setAiTitle(id, sql) }