Clear quantity when switching to explore
Some checks failed
Build Docker Image / build (push) Failing after 20s
Some checks failed
Build Docker Image / build (push) Failing after 20s
This commit is contained in:
@@ -368,7 +368,11 @@ export function useCatalogSearch() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const setCatalogMode = (newMode: CatalogMode) => {
|
const setCatalogMode = (newMode: CatalogMode) => {
|
||||||
updateQuery({ mode: newMode })
|
if (newMode === 'explore') {
|
||||||
|
updateQuery({ mode: newMode, qty: null })
|
||||||
|
} else {
|
||||||
|
updateQuery({ mode: newMode })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Can search for offers (product + hub or product + supplier required)
|
// Can search for offers (product + hub or product + supplier required)
|
||||||
|
|||||||
Reference in New Issue
Block a user