From 6f4dd909739efce1021ff7cc5032e81177749b2d Mon Sep 17 00:00:00 2001 From: Alexandre Pulido Date: Sun, 5 Nov 2023 23:55:22 +0100 Subject: [PATCH] fix filters in library view --- app/templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index 72585dd..9272a5b 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -218,8 +218,8 @@
{{ game.name }}
}) 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');