Skip to content

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

Fix clear button on datetime input

Terry Sutton5b16471c7a84
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/DateTimeInput.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/DateTimeInput.tsx
index 4a4e9994027..0461c1abbf8 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/DateTimeInput.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/DateTimeInput.tsx
@@ -21,7 +21,7 @@ const DateTimeInput: FC<Props> = ({ value, onChange, name, format, description }
function handleOnChange(e: any) {
const temp = e.target.value
- if (temp.length === 0) return
+ if (temp.length === 0 && temp !== '') return
onChange(temp)
}