minor fix: prevent SpecialAbilitySheet to not render by introducing a sane fallback
parent
5b57546e25
commit
20d3a04577
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue