diff --git a/packages/nc-gui/components/import/templateParsers/ExcelTemplateAdapter.js b/packages/nc-gui/components/import/templateParsers/ExcelTemplateAdapter.js index 37dfd37bae..469bca5ca9 100644 --- a/packages/nc-gui/components/import/templateParsers/ExcelTemplateAdapter.js +++ b/packages/nc-gui/components/import/templateParsers/ExcelTemplateAdapter.js @@ -79,8 +79,8 @@ export default class ExcelTemplateAdapter extends TemplateGenerator { columnNamePrefixRef[cn] = 0 const column = { - cn, - refCn: cn + column_name: cn, + ref_column_name: cn } table.columns.push(column) diff --git a/packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue b/packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue index 9d3c0542c0..709c844936 100644 --- a/packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue +++ b/packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue @@ -198,7 +198,7 @@ export default { remapColNames(batchData, columns) { return batchData.map(data => (columns || []).reduce((aggObj, col) => ({ ...aggObj, - [col.column_name]: data[col.refCn] + [col.column_name]: data[col.ref_column_name] }), {}) ) }