Skip to content

Commit df91819

Browse files
committed
fix boolean coercion
1 parent 2ccd18c commit df91819

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • apps/sim/app/api/table/import-csv

apps/sim/app/api/table/import-csv/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ function coerceValue(value: unknown, colType: ColumnType): string | number | boo
123123
}
124124
case 'boolean': {
125125
const s = String(value).toLowerCase()
126-
return s === 'true'
126+
if (s === 'true') return true
127+
if (s === 'false') return false
128+
return null
127129
}
128130
case 'date': {
129131
const d = new Date(String(value))

0 commit comments

Comments
 (0)