diff --git a/src/app/components/previews/LootTable.ts b/src/app/components/previews/LootTable.ts index 949f0b30..e7946c67 100644 --- a/src/app/components/previews/LootTable.ts +++ b/src/app/components/previews/LootTable.ts @@ -397,6 +397,7 @@ function testCondition(condition: any, ctx: LootContext): boolean { const LootConditions: Record LootCondition> = { alternative: ({ terms }) => (ctx) => { + if (!Array.isArray(terms) || terms.length === 0) return true for (const term of terms) { if (testCondition(term, ctx)) { return true