never delete default workspace

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-03-16 11:44:49 -04:00
1 parent 00f176c839
commit 63e53eacdc
1 file changed
+1 -1
+1 -1
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);