The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix deleting the first table not redirecting to the next one properly
Joshen Lim45e4884492d1
diff --git a/studio/pages/project/[ref]/editor/[id].tsx b/studio/pages/project/[ref]/editor/[id].tsxindex 96a782a27fa..8273a46d50e 100644--- a/studio/pages/project/[ref]/editor/[id].tsx+++ b/studio/pages/project/[ref]/editor/[id].tsx@@ -113,11 +113,11 @@ const TableEditorPage: NextPage = () => {const onConfirmDeleteTable = async () => {try {- const tables = meta.tables.list((table: PostgresTable) => table.schema === selectedSchema)const response: any = await meta.tables.del(selectedTableToDelete!.id)-if (response.error) throw response.error+ const tables = meta.tables.list((table: PostgresTable) => table.schema === selectedSchema)+// For simplicity for now, we just open the first table within the same schemaif (tables.length > 0) {router.push(`/project/${projectRef}/editor/${tables[0].id}`)