Skip to content

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

Add guard in rowKeyGetter in Grid

Joshen Lim666f03418a21
diff --git a/studio/components/grid/components/grid/Grid.tsx b/studio/components/grid/components/grid/Grid.tsx
index 2f43c880290..ee5805736f5 100644
--- a/studio/components/grid/components/grid/Grid.tsx
+++ b/studio/components/grid/components/grid/Grid.tsx
@@ -8,7 +8,7 @@ import RowRenderer from './RowRenderer'
import AwesomeDebouncePromise from 'awesome-debounce-promise'
function rowKeyGetter(row: SupaRow) {
- return row.idx
+ return row?.idx ?? -1
}
interface IGrid extends GridProps {