The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: remove unused code to fix creating policies via assistant (#21584)
Alaister Young4892a792802e
diff --git a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/index.tsx b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/index.tsxindex e525696f33c..f42e025bc44 100644--- a/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/index.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/AIPolicyEditorPanel/index.tsx@@ -130,9 +130,6 @@ export const AIPolicyEditorPanel = memo(function ({const { mutateAsync: debugSql, isLoading: isDebugSqlLoading } = useSqlDebugMutation()- const errorLines =- error?.formattedError.split('\n').filter((x: string) => x.length > 0).length ?? 0-const onExecuteSQL = useCallback(() => {// clean up the sql before sendingconst policy = editorRef.current?.getValue().replaceAll(' ', ' ')