Skip to content

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

renamed paramter to event

Ollie Hallidaye83c3bff83ee
diff --git a/studio/components/grid/components/editor/SelectEditor.tsx b/studio/components/grid/components/editor/SelectEditor.tsx
index 6a0410470d2..ce9ed3e32d0 100644
--- a/studio/components/grid/components/editor/SelectEditor.tsx
+++ b/studio/components/grid/components/editor/SelectEditor.tsx
@@ -19,11 +19,11 @@ export function SelectEditor<TRow, TSummaryRow = unknown>({
const value = row[column.key as keyof TRow] as unknown as string
- function onChange(value: any) {
- if (!value || value == '') {
+ function onChange(event: any) {
+ if (!event || event == '') {
onRowChange({ ...row, [column.key]: null }, true)
} else {
- onRowChange({ ...row, [column.key]: value.target.value }, true)
+ onRowChange({ ...row, [column.key]: event.target.value }, true)
}
}