Skip to content

Commit

Permalink
Merge pull request #51305 from adeel0202/adeel-saved-search-name
Browse files Browse the repository at this point in the history
fix: saved search name is blank after clearing name field
  • Loading branch information
chiragsalian authored Oct 30, 2024
2 parents b5561d9 + 1931d55 commit 30b0b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Search/SavedSearchRenamePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function SavedSearchRenamePage({route}: {route: {params: {q: string; name: strin
Navigation.navigate(
ROUTES.SEARCH_CENTRAL_PANE.getRoute({
query: q,
name: newName,
name: newName?.trim(),
}),
);
};
Expand All @@ -38,7 +38,7 @@ function SavedSearchRenamePage({route}: {route: {params: {q: string; name: strin

SearchActions.saveSearch({
queryJSON,
newName,
newName: newName?.trim() || q,
});

applyFiltersAndNavigate();
Expand Down

0 comments on commit 30b0b8d

Please sign in to comment.