From 1a3c3d51ae77be747af1366ff2e5f577a43588fc Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 30 Aug 2022 17:29:40 +0800 Subject: [PATCH] fix(gui-v2): use import data with the first key --- packages/nc-gui-v2/components/template/Editor.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/template/Editor.vue b/packages/nc-gui-v2/components/template/Editor.vue index d97377aba2..512a094783 100644 --- a/packages/nc-gui-v2/components/template/Editor.vue +++ b/packages/nc-gui-v2/components/template/Editor.vue @@ -332,7 +332,8 @@ async function importTemplate() { 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!