Skip to content

Commit

Permalink
PWA-3237 :Search products by category from searchBar doesn't work (#4235
Browse files Browse the repository at this point in the history
)

* PWA-3237 :Search products by category from searchBar doesn't work

* PWA-3237 :test case fixed

---------

Co-authored-by: rudraswamy.c <rudraswamy.c@BLR1-LMC-N84153.local>
  • Loading branch information
glo85315 and rudraswamy.c authored Mar 4, 2024
1 parent 52229b2 commit 50a22b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`#useSuggestedCategory returns valid destination 1`] = `"/search.html?query=bar&category_id%5Bfilter%5D=foo%2C1"`;
exports[`#useSuggestedCategory returns valid destination 1`] = `"/search.html?query=bar&category_uid%5Bfilter%5D=foo%2C1"`;
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const setSearchParams = (existing, options) => {
const { categoryId, label, searchValue } = options;

params.set('query', searchValue);
params.set('category_id[filter]', `${label}${DELIMITER}${categoryId}`);
params.set('category_uid[filter]', `${label}${DELIMITER}${categoryId}`);

return `${params}`;
};
Expand Down

0 comments on commit 50a22b6

Please sign in to comment.