Make non-colored resources and event match under "None"
This commit is contained in:
parent
301ecf77bd
commit
06d0b5ded0
1 changed files with 9 additions and 0 deletions
|
@ -119,6 +119,15 @@ export async function getCards(filter: CardFilter) {
|
|||
}
|
||||
}
|
||||
}
|
||||
// For "None" element searches, "nothing" is actually ok
|
||||
if (
|
||||
filter.Elements.includes("None") &&
|
||||
x.Element.length == 0 &&
|
||||
(!x.Requirement || x.Requirement.length == 0) &&
|
||||
(!x.ProblemRequirement || x.ProblemRequirement.length == 0)
|
||||
) {
|
||||
found = true;
|
||||
}
|
||||
if (!found) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue