From d4150ff2e0c2c458a50844914ddbc8f5457c7b83 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 16 Mar 2026 21:19:20 -0600 Subject: [PATCH] Fix a bug with the Attribute Only actor sheet breaking the other sheets due to the parts definition (closes #47) --- module/apps/AttributeOnlyPlayerSheet.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/apps/AttributeOnlyPlayerSheet.mjs b/module/apps/AttributeOnlyPlayerSheet.mjs index 41ee130..f07747a 100644 --- a/module/apps/AttributeOnlyPlayerSheet.mjs +++ b/module/apps/AttributeOnlyPlayerSheet.mjs @@ -1,5 +1,7 @@ import { PlayerSheet } from "./PlayerSheet.mjs"; +const { deepClone } = foundry.utils; + export class AttributeOnlyPlayerSheet extends PlayerSheet { // #region Options static DEFAULT_OPTIONS = { @@ -9,7 +11,7 @@ export class AttributeOnlyPlayerSheet extends PlayerSheet { }; static get PARTS() { - const parts = super.PARTS; + const parts = deepClone(super.PARTS); delete parts.content; return parts; };