Skip to content

Commit

Permalink
fix deleting workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Mar 14, 2024
1 parent aa46730 commit 9dc0364
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 9dc0364

Please sign in to comment.