Skip to content

Commit

Permalink
Merge pull request #38416 from Expensify/cmartins-fixCrash
Browse files Browse the repository at this point in the history
Unselect all categories when editing
  • Loading branch information
mountiny authored Mar 16, 2024
2 parents 2979e3c + 8970879 commit 489eaa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function WorkspaceCategoriesPage({policy, policyCategories, route}: WorkspaceCat
);

const navigateToCategorySettings = (category: PolicyOption) => {
setSelectedCategories({});
Navigation.navigate(ROUTES.WORKSPACE_CATEGORY_SETTINGS.getRoute(route.params.policyID, category.keyForList));
};

Expand Down

0 comments on commit 489eaa2

Please sign in to comment.