From 3d18d991e24a5420172ba974cc0353e4e7312ceb Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 21 Oct 2022 16:36:31 +0800 Subject: [PATCH] fix(nc-gui): fallback to row[i] if cellObj.w s not found --- packages/nc-gui/utils/parsers/ExcelTemplateAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/utils/parsers/ExcelTemplateAdapter.ts b/packages/nc-gui/utils/parsers/ExcelTemplateAdapter.ts index 8c47c58e03..c74db91162 100644 --- a/packages/nc-gui/utils/parsers/ExcelTemplateAdapter.ts +++ b/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])