bug fixes

This commit is contained in:
Luis Alvarez
2020-10-14 13:12:34 -05:00
parent 32da7ddcc1
commit 8905089fd7
3 changed files with 10 additions and 5 deletions

View File

@@ -31,9 +31,8 @@ export default function Search({
const { asPath } = router
const { q, sort } = router.query
const query = filterQuery({ q, sort })
const pathname = asPath.split('?')[0]
const { category, brand } = useSearchMeta(asPath)
const { pathname, category, brand } = useSearchMeta(asPath)
const activeCategory = categories.find(
(cat) => getSlug(cat.path) === category
)