A little cleanup
This commit is contained in:
parent
918fa5081b
commit
5bf9ee534d
4 changed files with 4 additions and 4 deletions
|
@ -136,7 +136,7 @@ export class DS4ActorSheet extends ActorSheet<ActorSheet.Options> {
|
|||
event.preventDefault();
|
||||
const header = event.currentTarget;
|
||||
|
||||
const { type, ...data } = duplicate(header.dataset);
|
||||
const { type, ...data } = foundry.utils.deepClone(header.dataset);
|
||||
|
||||
const name = `New ${type.capitalize()}`;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ export class DS4CharacterActorSheet extends DS4ActorSheet {
|
|||
// TODO: Improve
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
return mergeObject(super.defaultOptions, {
|
||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||
classes: ["ds4", "sheet", "actor", "character"],
|
||||
});
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ export class DS4CreatureActorSheet extends DS4ActorSheet {
|
|||
// TODO: Improve
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
return mergeObject(super.defaultOptions, {
|
||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||
classes: ["ds4", "sheet", "actor", "creature"],
|
||||
});
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ export class DS4ItemSheet extends ItemSheet {
|
|||
// TODO: Improve
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
return mergeObject(super.defaultOptions, {
|
||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||
width: 540,
|
||||
height: 400,
|
||||
classes: ["ds4", "sheet", "item"],
|
||||
|
|
Loading…
Reference in a new issue