Browse Source

fix(gui-v2): revise progress type & add await to sync

pull/2795/head
Wing-Kam Wong 2 years ago
parent
commit
294fc327c4
  1. 4
      packages/nc-gui-v2/components/dlg/AirtableImport.vue

4
packages/nc-gui-v2/components/dlg/AirtableImport.vue

@ -20,7 +20,7 @@ const toast = useToast()
const { sqlUi, project, loadTables } = useProject() const { sqlUi, project, loadTables } = useProject()
const loading = ref(false) const loading = ref(false)
const step = ref(1) const step = ref(1)
const progress = ref([]) const progress = ref<Record<string, any>[]>([])
const socket = ref() const socket = ref()
const syncSourceUrlOrId = ref('') const syncSourceUrlOrId = ref('')
const syncSource = ref({ const syncSource = ref({
@ -64,7 +64,7 @@ const { resetFields, validate, validateInfos } = useForm(syncSource, validators)
async function saveAndSync() { async function saveAndSync() {
await createOrUpdate() await createOrUpdate()
sync() await sync()
} }
async function createOrUpdate() { async function createOrUpdate() {

Loading…
Cancel
Save