Skip to content

Commit

Permalink
Merge pull request Expensify#53807 from bernhardoj/fix/53600-filter-i…
Browse files Browse the repository at this point in the history
…con-is-unresponsive

Fix can't open filter page if coming from workspace page
  • Loading branch information
thienlnam authored Dec 12, 2024
2 parents 5871828 + 9226324 commit 082e14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceInitialPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function WorkspaceInitialPage({policyDraft, policy: policyProp, route}: Workspac

// We are checking if the user can access the route.
// If user can't access the route, we are dismissing any modals that are open when the NotFound view is shown
const canAccessRoute = activeRoute && menuItems.some((item) => item.routeName === activeRoute);
const canAccessRoute = activeRoute && (menuItems.some((item) => item.routeName === activeRoute) || activeRoute === SCREENS.WORKSPACE.INITIAL);

useEffect(() => {
if (!shouldShowNotFoundPage && canAccessRoute) {
Expand Down

0 comments on commit 082e14b

Please sign in to comment.