The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: deleting tables
Alaister Youngcc254920e14a
diff --git a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsxindex ef5851151a4..ff6bddf0a10 100644--- a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx@@ -109,6 +109,12 @@ const TableGridEditor: FC<Props> = ({setEncryptedColumns(columns)}+ const { mutate: mutateUpdateTableRow } = useTableRowUpdateMutation({+ onError(error) {+ onError(error)+ },+ })+function getResourcesFromJsonSchema(value: any) {const { paths } = value || {}const functionPath = 'rpc/'@@ -157,6 +163,7 @@ const TableGridEditor: FC<Props> = ({}}, [selectedTable?.id])+ // NOTE: DO NOT PUT HOOKS AFTER THIS LINEif (isUndefined(selectedTable)) {return <NotFoundState id={Number(id)} />}@@ -246,12 +253,6 @@ const TableGridEditor: FC<Props> = ({})}- const { mutate: mutateUpdateTableRow } = useTableRowUpdateMutation({- onError(error) {- onError(error)- },- })-const updateTableRow = (previousRow: any, updatedData: any) => {if (!project) return