mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Update webapp/mixins/filterMenuMixin.js
Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
parent
87c47bc83d
commit
c50e20b801
@ -56,8 +56,8 @@ export default {
|
|||||||
// if 'setPostType' is not set then set it and unset all others
|
// if 'setPostType' is not set then set it and unset all others
|
||||||
this.toggleFilterPostType(setPostType)
|
this.toggleFilterPostType(setPostType)
|
||||||
this.filterPostTypes.forEach((postType) => {
|
this.filterPostTypes.forEach((postType) => {
|
||||||
if (postType !== setPostType)
|
if (postType !== setPostType && this.filteredPostTypes.includes(postType))
|
||||||
if (this.filteredPostTypes.includes(postType)) this.toggleFilterPostType(postType)
|
this.toggleFilterPostType(postType)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user