mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
never delete default workspace
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
00f176c839
commit
63e53eacdc
@ -310,7 +310,7 @@ export class WorkspaceStore extends BaseStore<WorkspaceStoreModel> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const currentWorkspaces = this.workspaces.toJS();
|
const currentWorkspaces = this.workspaces.toJS();
|
||||||
const newWorkspaceIds = new Set<WorkspaceId>();
|
const newWorkspaceIds = new Set<WorkspaceId>([WorkspaceStore.defaultId]); // never delete default
|
||||||
|
|
||||||
for (const workspaceModel of workspaces) {
|
for (const workspaceModel of workspaces) {
|
||||||
const oldWorkspace = this.workspaces.get(workspaceModel.id);
|
const oldWorkspace = this.workspaces.get(workspaceModel.id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user