Skip to content

Commit 57ee7e8

Browse files
authored
Merge pull request docker#21360 from dvdksn/fix-guides-filter-unselect
hugo: show all guides when filters are unselected
2 parents 41c868e + 967c2cb commit 57ee7e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

layouts/guides/landing.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ <h1 data-pagefind-weight="10" class="scroll-mt-36">{{ .Title }}</h1>
8383
updateVisible() {
8484
const hiddenSet = new Set();
8585
// show if no filters have been selected
86-
if (this.noFilters()) return;
86+
if (this.noFilters()) {
87+
this.hidden = [];
88+
return;
89+
};
8790
const guideContainer = this.$refs['guide-container'];
8891
const guides = guideContainer.children
8992

0 commit comments

Comments
 (0)