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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user