Skip to content

Commit

Permalink
fix: deprecated Foundry v12 on duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
DjLeChuck committed May 15, 2024
1 parent d8c00c9 commit 98120e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/sheets/actor-sheet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class ChannelFearActorSheet extends ActorSheet {
event.preventDefault();
const header = event.currentTarget;
const type = header.dataset.type;
const data = duplicate(header.dataset);
const data = foundry.utils.duplicate(header.dataset);
const name = game.i18n.format('CF.Global.NewItem', {
type: game.i18n.localize(`TYPES.Item.${type.toLowerCase()}`).toLowerCase(),
});
Expand Down

0 comments on commit 98120e7

Please sign in to comment.