Skip to content

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

Check if value is an object before returning it

Terry Suttonef7060729091
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts
index ac195962610..59880facec7 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts
@@ -84,7 +84,10 @@ export const validateFields = (fields: RowField[]) => {
const parseValue = (originalValue: any, format: string) => {
try {
- if (originalValue === null || originalValue.length === 0) {
+ if (
+ (originalValue === null || originalValue.length === 0) &&
+ typeof originalValue !== 'object'
+ ) {
return originalValue
} else if (typeof originalValue === 'number' || !format) {
return originalValue