The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
changed to use Select instead of ListBox
Ollie Halliday8cc5f19d9e94
diff --git a/studio/components/grid/components/editor/SelectEditor.tsx b/studio/components/grid/components/editor/SelectEditor.tsxindex f980583fad0..206417e5901 100644--- a/studio/components/grid/components/editor/SelectEditor.tsx+++ b/studio/components/grid/components/editor/SelectEditor.tsx@@ -1,4 +1,4 @@-import { Listbox } from '@supabase/ui'+import { Select } from '@supabase/ui'import { EditorProps } from '@supabase/react-data-grid'import { useTrackedState } from 'components/grid/store'@@ -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: string) {+ function onChange(value: any) {if (!value || value == '') {onRowChange({ ...row, [column.key]: null }, true)} else {- onRowChange({ ...row, [column.key]: value }, true)+ onRowChange({ ...row, [column.key]: value.target.value }, true)}}@@ -32,7 +32,7 @@ export function SelectEditor<TRow, TSummaryRow = unknown>({}return (- <Listbox+ <SelectautoFocusid="select-editor"name="select-editor"@@ -44,14 +44,12 @@ export function SelectEditor<TRow, TSummaryRow = unknown>({onChange={onChange}onBlur={onBlur}>- <Listbox.Option id="NULL" label="NULL" value="">- NULL- </Listbox.Option>+ <Select.Option value="">NULL</Select.Option>{options.map(({ label, value }) => (- <Listbox.Option key={value} label={label} value={value}>+ <Select.Option key={value} value={value}>{label}- </Listbox.Option>+ </Select.Option>))}- </Listbox>+ </Select>)}