Browse Source

fix(gui-v2): use import data with the first key

pull/3395/head
Wing-Kam Wong 2 years ago
parent
commit
1a3c3d51ae
  1. 3
      packages/nc-gui-v2/components/template/Editor.vue

3
packages/nc-gui-v2/components/template/Editor.vue

@ -332,7 +332,8 @@ async function importTemplate() {
const tableName = meta.value.title const tableName = meta.value.title
const data = importData[tableName] // only one file is allowed currently
const data = importData[Object.keys(importData)[0]]
const projectName = project.value.title! const projectName = project.value.title!

Loading…
Cancel
Save