Skip to content

Commit

Permalink
fix(storefront): Properly mounting search querystring on `useProductS…
Browse files Browse the repository at this point in the history
…helf` for related products
  • Loading branch information
leomp12 committed Mar 29, 2024
1 parent 21f8dba commit a892367
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const useProductShelf = (props: Props) => {
if (props.isRelatedProducts) {
const { apiContext } = globalThis.$storefront;
if (apiContext?.resource === 'products') {
endpointQuery += `like=${apiContext.doc._id}`;
endpointQuery += `&like=${apiContext.doc._id}`;
if (!title.value && title.value !== null) {
title.value = i19relatedProducts;
}
Expand Down

0 comments on commit a892367

Please sign in to comment.