mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 15:18:27 -04:00
remove last workspace check (#4880)
This commit is contained in:
committed by
Filipe Freire
parent
c5f9b77cbd
commit
07706d093a
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user