Fix a bug with the Attribute Only actor sheet breaking the other sheets due to the parts definition (closes #47)

This commit is contained in:
Oliver 2026-03-16 21:19:20 -06:00
parent cc8f054115
commit d4150ff2e0

View file

@ -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;
};