mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
Add guard in rowKeyGetter in Grid
This commit is contained in:
1 parent
91227d668b
commit
666f03418a
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user