Skip to content

Commit

Permalink
Merge pull request #49757 from Nodebrute/fixname
Browse files Browse the repository at this point in the history
use title instead of item.name

(cherry picked from commit b9f8b86)

(CP triggered by AndrewGable)
  • Loading branch information
stitesExpensify authored and OSBotify committed Sep 26, 2024
1 parent 314f978 commit a576a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/SearchUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ function getOverflowMenu(itemName: string, hash: number, inputQuery: string, sho
if (isMobileMenu && closeMenu) {
closeMenu();
}
Navigation.navigate(ROUTES.SEARCH_SAVED_SEARCH_RENAME.getRoute({name: itemName, jsonQuery: inputQuery}));
Navigation.navigate(ROUTES.SEARCH_SAVED_SEARCH_RENAME.getRoute({name: encodeURIComponent(itemName), jsonQuery: inputQuery}));
},
icon: Expensicons.Pencil,
shouldShowRightIcon: false,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Search/SearchTypeMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function SearchTypeMenu({queryJSON}: SearchTypeMenuProps) {
SearchActions.clearAllFilters();
Navigation.navigate(ROUTES.SEARCH_CENTRAL_PANE.getRoute({query: item?.query ?? ''}));
},
rightComponent: <SavedSearchItemThreeDotMenu menuItems={getOverflowMenu(item.name, Number(key), item.query)} />,
rightComponent: <SavedSearchItemThreeDotMenu menuItems={getOverflowMenu(title, Number(key), item.query)} />,
styles: [styles.alignItemsCenter],
};

Expand Down

0 comments on commit a576a3a

Please sign in to comment.