Skip to content

Commit

Permalink
Merge pull request #42976 from tienifr/fix/42906-42902
Browse files Browse the repository at this point in the history
fix: go back in AccessOrNotFoundWrapper
  • Loading branch information
youssef-lr authored Jun 11, 2024
2 parents b1577cb + 59050d4 commit e9ed491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/AccessOrNotFoundWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function PageNotFoundFallback({policyID, shouldShowFullScreenFallback, fullPageN
/>
) : (
<NotFoundPage
onBackButtonPress={() => Navigation.goBack(policyID ? ROUTES.WORKSPACE_PROFILE.getRoute(policyID) : ROUTES.HOME)}
onBackButtonPress={() => Navigation.goBack(policyID ? ROUTES.WORKSPACE_PROFILE.getRoute(policyID) : undefined)}
// eslint-disable-next-line react/jsx-props-no-spreading
{...fullPageNotFoundViewProps}
/>
Expand Down

0 comments on commit e9ed491

Please sign in to comment.