Skip to content

Commit

Permalink
Merge pull request #38398 from rezkiy37/feature/38185-update-navigation
Browse files Browse the repository at this point in the history
Use another navigation action to get back
  • Loading branch information
mountiny authored Mar 15, 2024
2 parents a7388e3 + 1333455 commit befd1a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3174,8 +3174,7 @@ function navigateWhenEnableFeature(policyID: string, featureRoute: Route) {
const isNarrowLayout = getIsNarrowLayout();

if (isNarrowLayout) {
Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(policyID), CONST.NAVIGATION.TYPE.FORCED_UP);

Navigation.goBack(ROUTES.WORKSPACE_INITIAL.getRoute(policyID));
return;
}

Expand Down

0 comments on commit befd1a2

Please sign in to comment.