Update webapp/mixins/filterMenuMixin.js

Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
Wolfgang Huß 2023-06-01 17:11:55 +02:00 committed by GitHub
parent d0fe3006bc
commit d24200eabd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {