Skip to content

Commit

Permalink
fix: improve logic readability
Browse files Browse the repository at this point in the history
  • Loading branch information
mbacherycz committed Nov 12, 2024
1 parent a4fe00b commit 286e077
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,9 @@ export const SavedSearchesItem = ({ savedSearch, actionPanel, isLast }: SavedSea
const queryParams = new URLSearchParams({
...(searchString && { search: searchString }),
...(filters?.length && { filters: JSON.stringify(filters) }),
...Object.fromEntries(urlParams.entries()),
});

for (const [key, value] of urlParams.entries()) {
if (!queryParams.has(key)) {
queryParams.append(key, value);
}
}

const searchData = savedSearch.data;
const { t } = useTranslation();

Expand Down

0 comments on commit 286e077

Please sign in to comment.