1
0
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:
Sebastian Malton 2021-03-16 11:44:49 -04:00
parent 00f176c839
commit 63e53eacdc

View File

@ -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);