fix(SQLite): table content not refresh after an update, fixes #665

This commit is contained in:
Fabio Di Stasio 2023-09-20 17:54:25 +02:00
parent b321e64b83
commit 6dceaf09be
1 changed files with 5 additions and 2 deletions

View File

@ -231,7 +231,7 @@ import { ConnectionParams } from 'common/interfaces/antares';
import { TableFilterClausole } from 'common/interfaces/tableApis'; import { TableFilterClausole } from 'common/interfaces/tableApis';
import { ipcRenderer } from 'electron'; import { ipcRenderer } from 'electron';
import { storeToRefs } from 'pinia'; 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 { useI18n } from 'vue-i18n';
import BaseIcon from '@/components/BaseIcon.vue'; import BaseIcon from '@/components/BaseIcon.vue';
@ -258,7 +258,10 @@ const props = defineProps({
elementType: String elementType: String
}); });
const reloadTable = () => getTableData(); const reloadTable = async () => {
await nextTick();
getTableData();
};
const { const {
queryTable, queryTable,