From 638c064eae44e964440d7debb906cfa1a8d5c7ad Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 1 Apr 2025 07:44:50 +0000 Subject: [PATCH] Fix clear existing brand filter when selecting a category --- source/integrations/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/integrations/index.html b/source/integrations/index.html index 0f47a65fe1d..a2da1ed5260 100644 --- a/source/integrations/index.html +++ b/source/integrations/index.html @@ -728,6 +728,10 @@ join: ',' | split: ',' -%} let value = select.value; if (value !== '#') { + // Clear any existing brand filter when selecting a category + if (id === 'cat') { + removeQueryFromURL('brands'); + } setQueryURL(id, value); } else { // clear current filter