From 6dceaf09be7bd46f1915721abd03253ffc517256 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Wed, 20 Sep 2023 17:54:25 +0200 Subject: [PATCH] fix(SQLite): table content not refresh after an update, fixes #665 --- src/renderer/components/WorkspaceTabTable.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/WorkspaceTabTable.vue b/src/renderer/components/WorkspaceTabTable.vue index 939d5236..1ad060ed 100644 --- a/src/renderer/components/WorkspaceTabTable.vue +++ b/src/renderer/components/WorkspaceTabTable.vue @@ -231,7 +231,7 @@ import { ConnectionParams } from 'common/interfaces/antares'; import { TableFilterClausole } from 'common/interfaces/tableApis'; import { ipcRenderer } from 'electron'; import { storeToRefs } from 'pinia'; -import { computed, onBeforeUnmount, Prop, Ref, ref, watch } from 'vue'; +import { computed, nextTick, onBeforeUnmount, Prop, Ref, ref, watch } from 'vue'; import { useI18n } from 'vue-i18n'; import BaseIcon from '@/components/BaseIcon.vue'; @@ -258,7 +258,10 @@ const props = defineProps({ elementType: String }); -const reloadTable = () => getTableData(); +const reloadTable = async () => { + await nextTick(); + getTableData(); +}; const { queryTable,