Skip to content

Commit

Permalink
fix(saved posts): fix filtering Posts by multiple tags
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Nov 20, 2021
1 parent f793624 commit 14fb1c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/premium/saved-posts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ export default {
}
return POSTS.filter((POST) => {
return this.searchActiveTags.some((TAG) =>
// Filter that the post has to include every tag in the searchActiveTags array
return this.searchActiveTags.every((TAG) =>
POST.data.tags.includes(TAG.toLowerCase())
)
})
Expand Down

0 comments on commit 14fb1c1

Please sign in to comment.