fix: refresh data sources on sync metadata

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2022-10-20 12:44:10 +03:00
parent 78933be281
commit 4e5221437f
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ const props = defineProps<{
baseId: string
}>()
const emit = defineEmits(['baseSynced'])
const { $api } = useNuxtApp()
const { project, loadTables } = useProject()
@@ -47,6 +49,7 @@ async function syncMetaDiff() {
message.info(t('msg.info.metaDataRecreated'))
await loadTables()
await loadMetaDiff()
emit('baseSynced')
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))
} finally {