The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix: Fix the set null button when the value is empty (#34102)
Ivan Vasilov4bb36de27b03
diff --git a/apps/studio/components/grid/components/editor/TextEditor.tsx b/apps/studio/components/grid/components/editor/TextEditor.tsxindex d50ded31439..a592eea3bb6 100644--- a/apps/studio/components/grid/components/editor/TextEditor.tsx+++ b/apps/studio/components/grid/components/editor/TextEditor.tsx@@ -43,7 +43,7 @@ export const TextEditor = <TRow, TSummaryRow = unknown>({const gridColumn = state.gridColumns.find((x) => x.name == column.key)const rawValue = row[column.key as keyof TRow] as unknown- const initialValue = rawValue ? String(rawValue) : null+ const initialValue = rawValue || rawValue === '' ? String(rawValue) : nullconst [isPopoverOpen, setIsPopoverOpen] = useState(true)const [value, setValue] = useState<string | null>(initialValue)const [isConfirmNextModalOpen, setIsConfirmNextModalOpen] = useState(false)