mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Fix clear existing brand filter when selecting a category
This commit is contained in:
parent
81bda68853
commit
638c064eae
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user