Browse Source

feat(nc-gui): update column_name in Editor

pull/7022/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
810e7e7709
  1. 7
      packages/nc-gui/components/template/Editor.vue

7
packages/nc-gui/components/template/Editor.vue

@ -535,6 +535,13 @@ async function importTemplate() {
title: '',
columns: table.columns || [],
})
// column_name could have been updated in tableCreate
// e.g. sanitize column name to something like field_1, field_2, and etc
createdTable.columns.forEach((column, i) => {
table.columns[i].column_name = column.column_name
})
table.id = createdTable.id
table.title = createdTable.title

Loading…
Cancel
Save