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:
parent
cc8f054115
commit
d4150ff2e0
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue