From ffa0ee23b09653cd3312e1b93949aad05e4d4a47 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 30 Apr 2022 18:40:46 +0800 Subject: [PATCH] fix: empty data after editing column name --- .../components/templates/createProjectFromTemplateBtn.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue b/packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue index 489575b7e1..7f796a0c2d 100644 --- a/packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue +++ b/packages/nc-gui/components/templates/createProjectFromTemplateBtn.vue @@ -162,8 +162,9 @@ export default { // mark updated column_name t.columns.map((c) => { if (c.cn) { + // update column_name if users change it + // the original one will be kept in ref_column_name c.column_name = c.cn - c.ref_column_name = c.column_name } return c })