A little cleanup

This commit is contained in:
Johannes Loher 2021-06-30 13:08:41 +02:00
parent 918fa5081b
commit 5bf9ee534d
4 changed files with 4 additions and 4 deletions

View file

@ -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()}`;

View file

@ -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"],
});
}

View file

@ -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"],
});
}

View file

@ -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"],