remove last workspace check (#4880)

This commit is contained in:
Jack Kavanagh
2022-06-21 18:29:02 +02:00
committed by Filipe Freire
parent c5f9b77cbd
commit 07706d093a

View File

@@ -371,7 +371,7 @@ export class Wrapper extends PureComponent<WrapperProps, State> {
}
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<WrapperProps, State> {
await models.stats.incrementDeletedRequestsForDescendents(activeWorkspace);
await models.workspace.remove(activeWorkspace);
if (workspacesForActiveProject.length <= 1) {
handleSetActiveActivity(ACTIVITY_HOME);
}
handleSetActiveActivity(ACTIVITY_HOME);
}
async _handleActiveWorkspaceClearAllResponses() {