Skip to content

Commit 150bee6

Browse files
committed
refactor: hash after update
1 parent a42adc8 commit 150bee6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/resources/projects/website/listing/quarto-listing.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ window.quartoListingCategory = (category) => {
99
selectedCategories.clear();
1010
selectedCategories.add(category);
1111

12-
setCategoryHash();
1312
updateCategory();
13+
setCategoryHash();
1414
};
1515

1616
window["quarto-listing-loaded"] = () => {
@@ -96,8 +96,8 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
9696
selectedCategories.add(category);
9797
}
9898

99-
setCategoryHash();
10099
updateCategory();
100+
setCategoryHash();
101101
};
102102
}
103103

@@ -109,8 +109,8 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
109109
for (const categoryTitleEl of categoryTitleEls) {
110110
categoryTitleEl.onclick = () => {
111111
selectedCategories.clear();
112-
setCategoryHash();
113112
updateCategory();
113+
setCategoryHash();
114114
};
115115
}
116116

0 commit comments

Comments
 (0)