fix(sql-editor): put ai title gen behind feature/hipaa flags

This commit is contained in:
Greg Richardson committed 2023-08-09 09:41:44 -05:00
1 parent a6c872d5dd
commit 86a5ef8f2e
1 file changed
+5 -1
@@ -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)
}