Clear quantity when switching to explore
Some checks failed
Build Docker Image / build (push) Failing after 20s

This commit is contained in:
Ruslan Bakiev
2026-02-06 19:10:17 +07:00
parent 2939482fc3
commit c5d1dc87ae

View File

@@ -368,8 +368,12 @@ export function useCatalogSearch() {
})
const setCatalogMode = (newMode: CatalogMode) => {
if (newMode === 'explore') {
updateQuery({ mode: newMode, qty: null })
} else {
updateQuery({ mode: newMode })
}
}
// Can search for offers (product + hub or product + supplier required)
const canSearch = computed(() => {