From ebfb46918387acc76a233fd03105a291715c9c49 Mon Sep 17 00:00:00 2001 From: Theo <36564257+theoholl@users.noreply.github.com> Date: Sun, 8 Feb 2026 14:58:25 +0000 Subject: [PATCH] Update filter to show cards where any of the selected users is assigned to Signed-off-by: Theo <36564257+theoholl@users.noreply.github.com> --- src/store/card.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/store/card.js b/src/store/card.js index c8cc1d11df..614b1b8e06 100644 --- a/src/store/card.js +++ b/src/store/card.js @@ -26,7 +26,6 @@ export default function cardModuleFactory() { return false } let allTagsMatch = true - let allUsersMatch = true if (tags.length > 0) { tags.forEach((tag) => { @@ -40,12 +39,10 @@ export default function cardModuleFactory() { } if (users.length > 0) { - users.forEach((user) => { - if (!card?.assignedUsers || card.assignedUsers.findIndex((u) => u.participant.uid === user) === -1) { - allUsersMatch = false - } - }) - if (!allUsersMatch) { + const anyUserMatch = !card?.assignedUsers + ? false + : users.some((user) => card.assignedUsers.findIndex((u) => u.participant.uid === user) !== -1) + if (!anyUserMatch) { return false } }