Skip to content

Commit

Permalink
fix: category filters
Browse files Browse the repository at this point in the history
  • Loading branch information
maxiroellplenty committed Oct 6, 2023
1 parent 7abbbe6 commit fd383c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/web/pages/category/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ definePageMeta({
const { t } = useI18n();
const router = useRouter();
const route = useRoute();
const { getFacetsFromURL } = useCategoryFilter();
const { fetchProducts, data: productsCatalog, productsPerPage, loading } = useProducts();
const { data: categoryTree } = useCategoryTree();
Expand Down Expand Up @@ -60,4 +61,10 @@ watch(
router.push(localePath(`/c${productsCatalog.value.languageUrls[changedLocale]}`));
},
);
watch(
() => route.query,
async () => {
handleQueryUpdate();
},
);
</script>

0 comments on commit fd383c3

Please sign in to comment.