Browse Source

Merge pull request #5159 from semmjon/pr_5103

fix: wrong baseid in QuickImport
pull/5193/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
290425e4f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue

4
packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue

@ -1,5 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { UploadChangeParam, UploadFile } from 'ant-design-vue' import type { UploadChangeParam, UploadFile } from 'ant-design-vue'
import type { BaseType } from 'nocodb-sdk'
import { import {
message, message,
ref, ref,
@ -98,6 +99,7 @@ function openQuickImportDialog(type: QuickImportTypes, file: File) {
'modelValue': isOpen, 'modelValue': isOpen,
'importType': type, 'importType': type,
'onUpdate:modelValue': closeDialog, 'onUpdate:modelValue': closeDialog,
'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id,
}) })
vNode.value?.component?.exposed?.handleChange({ vNode.value?.component?.exposed?.handleChange({
@ -128,7 +130,7 @@ function openCreateTable() {
const { close } = useDialog(resolveComponent('DlgTableCreate'), { const { close } = useDialog(resolveComponent('DlgTableCreate'), {
'modelValue': isOpen, 'modelValue': isOpen,
'onUpdate:modelValue': closeDialog, 'onUpdate:modelValue': closeDialog,
'baseId': bases.value[0].id, 'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id,
}) })
function closeDialog() { function closeDialog() {

Loading…
Cancel
Save