Skip to content

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

Fix check in SpreadsheetImport utils

Joshen Lim3d4b9a492cbe
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.utils.ts b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.utils.ts
index ed3dca9ffcd..585fba63f4f 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.utils.ts
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.utils.ts
@@ -123,7 +123,7 @@ export const inferColumnType = (column: string, rows: object[]) => {
// Infer boolean type
if (includes(['true', 'false'], columnData.toString().toLowerCase())) {
const isAllBoolean = columnDataAcrossRows.every((item: any) => {
- if (item === null) return true
+ if (item === null || item === undefined) return true
else return includes(['true', 'false'], item.toString().toLowerCase())
})
if (isAllBoolean) {