The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add guard in RowContextMenu
Joshen Lim693289cdb204
diff --git a/studio/components/grid/components/menu/RowContextMenu.tsx b/studio/components/grid/components/menu/RowContextMenu.tsxindex a9b19acc00c..545f534c7ad 100644--- a/studio/components/grid/components/menu/RowContextMenu.tsx+++ b/studio/components/grid/components/menu/RowContextMenu.tsx@@ -21,6 +21,8 @@ const RowContextMenu: React.FC<RowContextMenuProps> = ({}) => {const { props } = pconst { rowIdx } = propsconst row = state.rows[rowIdx]+ if (!row) return+const { error } = state.rowService!.delete([row])if (error) {if (state.onError) state.onError(error)