1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: missing sidebar data after update

This commit is contained in:
2022-11-29 18:18:56 +01:00
parent e7da5a7040
commit 0a1f50a9b9
2 changed files with 20 additions and 20 deletions

View File

@ -103,11 +103,11 @@ const settingsStore = useSettingsStore();
const { updateStatus } = storeToRefs(applicationStore);
const { getSelected: selectedWorkspace } = storeToRefs(workspacesStore);
const { getConnectionsOrder: connectionsOrder } = storeToRefs(connectionsStore);
const { connectionsOrder } = storeToRefs(connectionsStore);
const { disableScratchpad } = storeToRefs(settingsStore);
const { showSettingModal, showScratchpad } = applicationStore;
const { updateConnectionsOrder } = connectionsStore;
const { updateConnectionsOrder, initConnectionsOrder } = connectionsStore;
const { selectWorkspace } = workspacesStore;
const emit = defineEmits(['show-connections-modal']);
@ -150,6 +150,9 @@ watch(selectedWorkspace, (newVal, oldVal) => {
}, 150);
}
});
if (!connectionsArr.value.length)
initConnectionsOrder();
</script>
<style lang="scss">