Skip to content

Commit 730be70

Browse files
committed
Fix browse patterns hash filtering
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6b476e36-06a4-4712-84af-3ff0ee807d3c
1 parent 1daacc9 commit 730be70

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

site/app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@
302302
if (target) {
303303
selectItem(target);
304304
toggleBtn.classList.toggle('has-filter', value !== 'all');
305+
return true;
305306
}
307+
return false;
306308
}};
307309
};
308310

@@ -331,8 +333,7 @@
331333

332334
// Apply filter from a given category string (or "all" / empty for no filter)
333335
const applyHashFilter = (category) => {
334-
if (category && catDropdownCtrl) {
335-
catDropdownCtrl.setActive(category);
336+
if (category && catDropdownCtrl && catDropdownCtrl.setActive(category)) {
336337
activeCategory = category;
337338
applyFilters();
338339
const section = document.getElementById('all-comparisons');

0 commit comments

Comments
 (0)