We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 657d73b commit 567ba5aCopy full SHA for 567ba5a
module/ui/compendium/compendium-filter.mjs
@@ -52,7 +52,10 @@ export class CompendiumFilter {
52
const paths = Array.isArray(category.propertyPath) ? category.propertyPath : [category.propertyPath];
53
const matchesAnyPath = paths.some((path) => {
54
const value = foundry.utils.getProperty(entry, path);
55
- return value && category.selected.has(value);
+ if (!value) return false;
56
+
57
+ const values = value.includes(',') ? value.split(',').map((v) => v.trim()) : [value];
58
+ return values.some((v) => category.selected.has(v));
59
});
60
if (!matchesAnyPath) {
61
return false;
0 commit comments