Browse Source

fix(nc-gui): fallback to row[i] if cellObj.w s not found

pull/4135/head
Wing-Kam Wong 2 years ago
parent
commit
3d18d991e2
  1. 2
      packages/nc-gui/utils/parsers/ExcelTemplateAdapter.ts

2
packages/nc-gui/utils/parsers/ExcelTemplateAdapter.ts

@ -217,7 +217,7 @@ export default class ExcelTemplateAdapter extends TemplateGenerator {
r: rowIndex + columnNameRowExist,
})
const cellObj = ws[cellId]
rowData[table.columns[i].column_name] = cellObj.w
rowData[table.columns[i].column_name] = (cellObj && cellObj.w) || row[i]
} else {
if (table.columns[i].uidt === UITypes.Checkbox) {
rowData[table.columns[i].column_name] = getCheckboxValue(row[i])

Loading…
Cancel
Save