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

fix: empty workspace deleting connections in some conditions

This commit is contained in:
2023-09-11 18:02:19 +02:00
parent 785bc40ad0
commit 0de5ef8a98
3 changed files with 10 additions and 5 deletions

View File

@@ -424,6 +424,10 @@ export const useWorkspacesStore = defineStore('workspaces', {
this.workspaces.push(workspace);
},
removeWorkspace (uid: string) {
this.workspaces = this.workspaces.filter((w: Workspace) => w.uid !== uid);
if (uid === this.selectedWorkspace) this.selectedWorkspace = 'NEW';
},
changeBreadcrumbs (payload: Breadcrumb) {
const breadcrumbsObj: Breadcrumb = {
schema: null,