diff --git a/src/module/sheets/advantageSheet.mjs b/src/module/sheets/advantageSheet.mjs index 62696148..db810b8e 100644 --- a/src/module/sheets/advantageSheet.mjs +++ b/src/module/sheets/advantageSheet.mjs @@ -53,9 +53,9 @@ export class AdvantageSheet extends HandlebarsApplicationMixin(DocumentSheetV2) context.system = advantageData.system; context.flags = context.system.flags; - context.hasChoices = context.system.auswahl.length > 0; + context.hasChoices = context.system.auswahl?.length > 0; context.choices = {} - context.system.auswahl.forEach(a => { + context.system.auswahl?.forEach(a => { context.choices[a] = a }) context.hasModality = context.system.value != null