From c50e20b801efa207a5d9a3b9837e5550bbdf600f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Thu, 1 Jun 2023 17:11:55 +0200 Subject: [PATCH] Update webapp/mixins/filterMenuMixin.js Co-authored-by: Hannes Heine --- webapp/mixins/filterMenuMixin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/mixins/filterMenuMixin.js b/webapp/mixins/filterMenuMixin.js index ed94ea1ac..b293977d9 100644 --- a/webapp/mixins/filterMenuMixin.js +++ b/webapp/mixins/filterMenuMixin.js @@ -56,8 +56,8 @@ export default { // if 'setPostType' is not set then set it and unset all others this.toggleFilterPostType(setPostType) this.filterPostTypes.forEach((postType) => { - if (postType !== setPostType) - if (this.filteredPostTypes.includes(postType)) this.toggleFilterPostType(postType) + if (postType !== setPostType && this.filteredPostTypes.includes(postType)) + this.toggleFilterPostType(postType) }) } } else {