Fix bug causing sheets to not render when the actor has no attribute items

This commit is contained in:
Oliver 2026-04-23 21:19:18 -06:00
parent e9d92d3db1
commit 5a4368b5e0

View file

@ -138,7 +138,7 @@ export class PlayerSheet extends
get hasAttributesTab() { get hasAttributesTab() {
return this.actor.itemTypes return this.actor.itemTypes
.attribute .attribute
.filter(attr => !attr.system.aboveTheFold) ?.filter(attr => !attr.system.aboveTheFold)
.length > 0; .length > 0;
}; };