diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-10-16 02:12:57 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-10-16 02:12:57 +0000 |
| commit | d9526998613669289c5b37912e15d8e93edcb4e3 (patch) | |
| tree | 8e2c8238d0641afa2ab5717a3994b283004073a1 /src/pages/shop | |
| parent | dd2662fc4c88fe660671aba06fd0be788f820ce5 (diff) | |
| parent | 43e59b8c7f8b742e5781a8a8b991afcf9aabb90e (diff) | |
Merged in CR/UI (pull request #99)
CR/UI
Diffstat (limited to 'src/pages/shop')
| -rw-r--r-- | src/pages/shop/category/[slug].jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pages/shop/category/[slug].jsx b/src/pages/shop/category/[slug].jsx index e3650235..6d3985a8 100644 --- a/src/pages/shop/category/[slug].jsx +++ b/src/pages/shop/category/[slug].jsx @@ -14,8 +14,12 @@ export default function CategoryDetail() { const categoryName = getNameFromSlug(slug) const categoryId = getIdFromSlug(slug) + const q = router?.query.q || null const query = { - fq: `manufacture_id_i:${categoryId}` + fq: `category_id_i:${categoryId}` + } + if (q) { + query.q = q } return ( |
