From 5bf9ee534d938a4feaed29035f8d42e0b545dd61 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Wed, 30 Jun 2021 13:08:41 +0200 Subject: [PATCH] A little cleanup --- src/module/actor/sheets/actor-sheet.ts | 2 +- src/module/actor/sheets/character-sheet.ts | 2 +- src/module/actor/sheets/creature-sheet.ts | 2 +- src/module/item/item-sheet.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/module/actor/sheets/actor-sheet.ts b/src/module/actor/sheets/actor-sheet.ts index 48fb2f32..2490b51a 100644 --- a/src/module/actor/sheets/actor-sheet.ts +++ b/src/module/actor/sheets/actor-sheet.ts @@ -136,7 +136,7 @@ export class DS4ActorSheet extends ActorSheet { 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()}`; diff --git a/src/module/actor/sheets/character-sheet.ts b/src/module/actor/sheets/character-sheet.ts index b101e86b..5c66603c 100644 --- a/src/module/actor/sheets/character-sheet.ts +++ b/src/module/actor/sheets/character-sheet.ts @@ -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"], }); } diff --git a/src/module/actor/sheets/creature-sheet.ts b/src/module/actor/sheets/creature-sheet.ts index dada4e34..bb583dd8 100644 --- a/src/module/actor/sheets/creature-sheet.ts +++ b/src/module/actor/sheets/creature-sheet.ts @@ -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"], }); } diff --git a/src/module/item/item-sheet.ts b/src/module/item/item-sheet.ts index 44eb35a1..04627683 100644 --- a/src/module/item/item-sheet.ts +++ b/src/module/item/item-sheet.ts @@ -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"],