Skip to content

Commit

Permalink
fix on narrow layout
Browse files Browse the repository at this point in the history
  • Loading branch information
289Adam289 committed Sep 11, 2024
1 parent e96f20d commit 263c291
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Search/SearchTypeMenuNarrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title}

return {
text: item.title,
onSelected: singleExecution(() => Navigation.navigate(item.route)),
onSelected: singleExecution(() => {
SearchActions.clearAllFilters();
Navigation.navigate(item.route);
}),
icon: item.icon,
iconFill: isSelected ? theme.iconSuccessFill : theme.icon,
iconRight: Expensicons.Checkmark,
Expand Down

0 comments on commit 263c291

Please sign in to comment.