Browse Source

fix: csv import checkbox logic

pull/6639/head
mertmit 1 year ago
parent
commit
06ff1d81be
  1. 1
      packages/nc-gui/helpers/parsers/CSVTemplateAdapter.ts

1
packages/nc-gui/helpers/parsers/CSVTemplateAdapter.ts

@ -224,7 +224,6 @@ export default class CSVTemplateAdapter {
const data = (row.data as [])[columnIdx] === '' ? null : (row.data as [])[columnIdx] const data = (row.data as [])[columnIdx] === '' ? null : (row.data as [])[columnIdx]
if (column.uidt === UITypes.Checkbox) { if (column.uidt === UITypes.Checkbox) {
rowData[column.column_name] = getCheckboxValue(data) rowData[column.column_name] = getCheckboxValue(data)
rowData[column.column_name] = data
} else if (column.uidt === UITypes.SingleSelect || column.uidt === UITypes.MultiSelect) { } else if (column.uidt === UITypes.SingleSelect || column.uidt === UITypes.MultiSelect) {
rowData[column.column_name] = (data || '').toString().trim() || null rowData[column.column_name] = (data || '').toString().trim() || null
} else { } else {

Loading…
Cancel
Save