From dddad7f55d4421e342c5b0cf53c56cd5d3531c18 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 6 May 2026 16:10:34 -0600 Subject: [PATCH] Fix actor creation throwing an error (closes #89) --- module/documents/Actor.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/documents/Actor.mjs b/module/documents/Actor.mjs index 1bfa0ea..0c464b5 100644 --- a/module/documents/Actor.mjs +++ b/module/documents/Actor.mjs @@ -130,8 +130,11 @@ export class TAFActor extends Actor { * This checks and performs all data migrations that the system requires, some * of these are one-time only migrations, others of them will happen every time * an Actor is updated. + * + * The defaulting of options is provided to ensure that the migration doesn't + * cause errors in Foundry v13 */ - static migrateData(data, options) { + static migrateData(data, options = {}) { this.#migrateToAttributeItems(data, options); return super.migrateData(data, options); };