From 967c2cbd06edc158a143ae58d5b2bfe17c55819c Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:09:47 +0100 Subject: [PATCH] hugo: show all guides when filters are unselected This fixes a bug where if you would first select some filters on the /guides landing page, and then unselect them again, the "All guides" section would still be filtered; not all guides were displayed when filter selection was cleared. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- layouts/guides/landing.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/guides/landing.html b/layouts/guides/landing.html index e8171b8d59..0d45c31c93 100644 --- a/layouts/guides/landing.html +++ b/layouts/guides/landing.html @@ -83,7 +83,10 @@ updateVisible() { const hiddenSet = new Set(); // show if no filters have been selected - if (this.noFilters()) return; + if (this.noFilters()) { + this.hidden = []; + return; + }; const guideContainer = this.$refs['guide-container']; const guides = guideContainer.children