Skip to content

Commit

Permalink
Merge pull request #5747 from Expensify/alberto-routeCard
Browse files Browse the repository at this point in the history
Route to the main workspace screen now that it is in rightpane

(cherry picked from commit 00d3ea4)
  • Loading branch information
nkuoch authored and AndrewGable committed Oct 14, 2021
1 parent 484c736 commit 5fa22a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function getPolicyList(shouldCreateNewPolicy = false) {

if (shouldCreateNewPolicy) {
Navigation.dismissModal();
Navigation.navigate(newPolicyID ? ROUTES.getWorkspaceCardRoute(newPolicyID) : ROUTES.HOME);
Navigation.navigate(newPolicyID ? ROUTES.getWorkspaceInitialRoute(newPolicyID) : ROUTES.HOME);
}

return API.GetPolicyList();
Expand Down

0 comments on commit 5fa22a9

Please sign in to comment.