From 20d3a045772b1a786fbf30ee6173315bcab73803 Mon Sep 17 00:00:00 2001 From: macniel Date: Wed, 29 Jul 2026 11:19:44 +0200 Subject: [PATCH] minor fix: prevent SpecialAbilitySheet to not render by introducing a sane fallback --- src/module/sheets/specialAbilitySheet.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/sheets/specialAbilitySheet.mjs b/src/module/sheets/specialAbilitySheet.mjs index 2c944636..4548ea9b 100644 --- a/src/module/sheets/specialAbilitySheet.mjs +++ b/src/module/sheets/specialAbilitySheet.mjs @@ -302,7 +302,7 @@ export class SpecialAbilitySheet extends HandlebarsApplicationMixin(DocumentShee _onRender(context, options) { if (this._selectedVariant == null) { - this._selectedVariant = this.document.system.auswahl[0].name + this._selectedVariant = this.document.system.auswahl[0]?.name ?? "" this._currentSelectedVariant = this.document.system.auswahl?.find(p => p.name === this._selectedVariant) this._currentSelectedVariantIndex = this.document.system.auswahl?.findIndex(p => p.name === this._selectedVariant) }