Skip to content

Commit

Permalink
fix filters in library view
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ex4 committed Nov 5, 2023
1 parent 6427d1a commit 6f4dd90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ <h5 class="card-title game-title">{{ game.name }}</h5>
})

if ((activeTypeFilters.size === 0 || Array.from(activeTypeFilters).some(tag => cardTagsText.includes(tag))) &&
(activeUpdateFilters.size === 0 || Array.from(activeUpdateFilters).every(tag => cardTagsText.includes(tag))) &&
(activeCompletionFilters.size === 0 || Array.from(activeUpdateFilters).every(tag => cardTagsText.includes(tag)))) {
(activeUpdateFilters.size === 0 || Array.from(activeUpdateFilters).some(tag => cardTagsText.includes(tag))) &&
(activeCompletionFilters.size === 0 || Array.from(activeUpdateFilters).some(tag => cardTagsText.includes(tag)))) {
card.parent().removeAttr('filtered-tag');
if ((card.parent().attr('filtered-text') != 'set') ){
card.parent().removeClass('d-none');
Expand Down

0 comments on commit 6f4dd90

Please sign in to comment.