Browse Source

fix(gui): convert value to string to avoid database error

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4883/head
Pranav C 2 years ago
parent
commit
5298c8e340
  1. 2
      packages/nc-gui/utils/parsers/ExcelTemplateAdapter.ts

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

@ -257,6 +257,8 @@ export default class ExcelTemplateAdapter extends TemplateGenerator {
})
const cellObj = ws[cellId]
rowData[table.columns[i].column_name] = (cellObj && cellObj.w) || row[i]
} else if (table.columns[i].uidt === UITypes.SingleLineText || table.columns[i].uidt === UITypes.LongText) {
rowData[table.columns[i].column_name] = `${row[i]}`
} else {
// TODO: do parsing if necessary based on type
rowData[table.columns[i].column_name] = row[i]

Loading…
Cancel
Save