Browse Source

fix(nc-gui): isCheckboxType return boolean now

pull/6725/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
ed5b3828fe
  1. 3
      packages/nc-gui/helpers/parsers/ExcelTemplateAdapter.ts

3
packages/nc-gui/helpers/parsers/ExcelTemplateAdapter.ts

@ -158,8 +158,7 @@ export default class ExcelTemplateAdapter extends TemplateGenerator {
.map((r: any) => r[col]) .map((r: any) => r[col])
.filter((v: any) => v !== null && v !== undefined && v.toString().trim() !== '') .filter((v: any) => v !== null && v !== undefined && v.toString().trim() !== '')
const checkboxType = isCheckboxType(vals, col) if (isCheckboxType(vals, col)) {
if (checkboxType.length === 1) {
column.uidt = UITypes.Checkbox column.uidt = UITypes.Checkbox
} else { } else {
// Single Select / Multi Select // Single Select / Multi Select

Loading…
Cancel
Save