From c081ffc0a953cb8376cab1bd0d6dde1a9d985b47 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 17 Aug 2022 23:03:37 +0200 Subject: [PATCH] chore(gui-v2): cleanup types --- packages/nc-gui-v2/components/dlg/AirtableImport.vue | 2 +- packages/nc-gui-v2/components/dlg/QuickImport.vue | 2 +- packages/nc-gui-v2/components/template/Editor.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui-v2/components/dlg/AirtableImport.vue b/packages/nc-gui-v2/components/dlg/AirtableImport.vue index a0347475a9..ae70558e9e 100644 --- a/packages/nc-gui-v2/components/dlg/AirtableImport.vue +++ b/packages/nc-gui-v2/components/dlg/AirtableImport.vue @@ -314,7 +314,7 @@ onBeforeUnmount(() => {
Logs
- +
diff --git a/packages/nc-gui-v2/components/dlg/QuickImport.vue b/packages/nc-gui-v2/components/dlg/QuickImport.vue index ee064eefee..7d9702ef41 100644 --- a/packages/nc-gui-v2/components/dlg/QuickImport.vue +++ b/packages/nc-gui-v2/components/dlg/QuickImport.vue @@ -191,7 +191,7 @@ async function parseAndExtractData(val: any, name: string) { } } -function rejectDrop(fileList: Record[]) { +function rejectDrop(fileList: UploadFile[]) { fileList.map((file) => { return message.error(`Failed to upload file ${file.name}`) }) diff --git a/packages/nc-gui-v2/components/template/Editor.vue b/packages/nc-gui-v2/components/template/Editor.vue index 5de4deb0bf..d41eb74ded 100644 --- a/packages/nc-gui-v2/components/template/Editor.vue +++ b/packages/nc-gui-v2/components/template/Editor.vue @@ -84,7 +84,7 @@ const uiTypeOptions = ref( const srcDestMapping = ref[]>([]) -const data = reactive<{ title: string | null; name: string; tables: TableType[] }>({ +const data = reactive<{ title: string | null; name: string; tables: (TableType & { ref_table_name: string })[] }>({ title: null, name: 'Project Name', tables: [],