Skip to content

Commit

Permalink
Merge pull request #38321 from kosmydel/@kosmydel/ideal-nav-v2-fix-de…
Browse files Browse the repository at this point in the history
…lete-workspace

[CP Staging] Fix: Not here page shows up after deleting workspace
  • Loading branch information
pecanoro authored Mar 14, 2024
2 parents 00315b1 + 9dc0364 commit e770c80
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libs/PolicyUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,7 @@ function getPolicyMembersByIdWithoutCurrentUser(policyMembers: OnyxCollection<Po
}

function goBackFromInvalidPolicy() {
Navigation.goBack(ROUTES.SETTINGS_WORKSPACES);

// Needed when workspace with given policyID does not exist
Navigation.navigateWithSwitchPolicyID({route: ROUTES.ALL_SETTINGS});
Navigation.navigate(ROUTES.SETTINGS_WORKSPACES);
}

export {
Expand Down

0 comments on commit e770c80

Please sign in to comment.