Skip to content

Commit

Permalink
fix(storefront): Properly listen grids data load on SKU selector comp…
Browse files Browse the repository at this point in the history
…osable
  • Loading branch information
leomp12 committed Mar 13, 2024
1 parent 0093426 commit 5c0ad4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const useSkuSelector = (props: Props) => {
|| [],
);
if (!grids.length && !import.meta.env.SSR) {
window.addEventListener('storefront:data:data', () => {
window.addEventListener('storefront:data:grids', () => {
globalThis.$storefront.data.grids?.forEach((grid) => grids.push(grid));
}, { once: true });
}
Expand Down

0 comments on commit 5c0ad4f

Please sign in to comment.