From 07706d093ac1cd0dba5fc166752ef7742e629353 Mon Sep 17 00:00:00 2001 From: Jack Kavanagh Date: Tue, 21 Jun 2022 18:29:02 +0200 Subject: [PATCH] remove last workspace check (#4880) --- packages/insomnia/src/ui/components/wrapper.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/insomnia/src/ui/components/wrapper.tsx b/packages/insomnia/src/ui/components/wrapper.tsx index c223cb4f63..5b8fc44526 100644 --- a/packages/insomnia/src/ui/components/wrapper.tsx +++ b/packages/insomnia/src/ui/components/wrapper.tsx @@ -371,7 +371,7 @@ export class Wrapper extends PureComponent { } async _handleRemoveActiveWorkspace() { - const { workspacesForActiveProject, activeWorkspace, handleSetActiveActivity } = this.props; + const { activeWorkspace, handleSetActiveActivity } = this.props; if (!activeWorkspace) { return; @@ -380,9 +380,7 @@ export class Wrapper extends PureComponent { await models.stats.incrementDeletedRequestsForDescendents(activeWorkspace); await models.workspace.remove(activeWorkspace); - if (workspacesForActiveProject.length <= 1) { - handleSetActiveActivity(ACTIVITY_HOME); - } + handleSetActiveActivity(ACTIVITY_HOME); } async _handleActiveWorkspaceClearAllResponses() {