Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: table editor fallback to undefined (#30323)

Alaister Young754af17e0689
diff --git a/apps/studio/data/table-editor/table-editor-query.ts b/apps/studio/data/table-editor/table-editor-query.ts
index 9cb98d4bb08..ddcd42bcdca 100644
--- a/apps/studio/data/table-editor/table-editor-query.ts
+++ b/apps/studio/data/table-editor/table-editor-query.ts
@@ -33,7 +33,7 @@ export async function getTableEditor(
signal
)
- return result[0]?.entity as Entity | undefined
+ return (result[0]?.entity ?? undefined) as Entity | undefined
}
export type TableEditorData = Awaited<ReturnType<typeof getTableEditor>>