diff --git a/src/Logic/Tags/And.ts b/src/Logic/Tags/And.ts index 86dab36702..5e242b9b6b 100644 --- a/src/Logic/Tags/And.ts +++ b/src/Logic/Tags/And.ts @@ -14,6 +14,10 @@ export class And extends TagsFilter { constructor(and: TagsFilter[]) { super() this.and = and + if(and.some(p => typeof p === "string")){ + console.error("Assertion failed: invalid subtags:", and) + throw "Assertion failed: invalid subtags found" + } } public static construct(and: TagsFilter[]): TagsFilter