@@ -292,7 +309,7 @@ function getAdapter(name: string, val: any) {
name="file"
class="nc-input-import !scrollbar-thin-dull"
:accept="importMeta.acceptTypes"
- :max-count="2"
+ :max-count="1"
list-type="picture"
@change="handleChange"
@reject="rejectDrop"
diff --git a/packages/nc-gui-v2/components/template/Editor.vue b/packages/nc-gui-v2/components/template/Editor.vue
index 6d9507fad5..5de4deb0bf 100644
--- a/packages/nc-gui-v2/components/template/Editor.vue
+++ b/packages/nc-gui-v2/components/template/Editor.vue
@@ -7,6 +7,7 @@ import {
MetaInj,
ReloadViewDataHookInj,
computed,
+ createEventHook,
extractSdkResponseErrorMsg,
fieldRequiredValidator,
getUIDTIcon,
@@ -40,11 +41,11 @@ const { quickImportType, projectTemplate, importData, importColumns, importOnly,
const emit = defineEmits(['import'])
-const meta = inject(MetaInj)!
+const meta = inject(MetaInj, ref({} as TableType))
const columns = computed(() => meta.value?.columns || [])
-const reloadHook = inject(ReloadViewDataHookInj)!
+const reloadHook = inject(ReloadViewDataHookInj, createEventHook())
const useForm = Form.useForm
@@ -673,6 +674,7 @@ onMounted(() => {
+
@@ -688,15 +690,19 @@ onMounted(() => {
-