mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 14:46:49 +00:00
@@ -31,6 +31,12 @@ export default function convertCellData(
|
||||
return parsedNumber
|
||||
}
|
||||
case UITypes.Checkbox:
|
||||
if (typeof value === 'boolean') return value
|
||||
if (typeof value === 'string') {
|
||||
const strval = value.trim().toLowerCase()
|
||||
if (strval === 'true' || strval === '1') return true
|
||||
if (strval === 'false' || strval === '0' || strval === '') return false
|
||||
}
|
||||
return Boolean(value)
|
||||
case UITypes.Date: {
|
||||
const parsedDate = dayjs(value)
|
||||
|
||||
Reference in New Issue
Block a user