Fix actor creation throwing an error (closes #89)

This commit is contained in:
Oliver 2026-05-06 16:10:34 -06:00
parent a34525f05e
commit dddad7f55d

View file

@ -130,8 +130,11 @@ export class TAFActor extends Actor {
* This checks and performs all data migrations that the system requires, some * 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 * of these are one-time only migrations, others of them will happen every time
* an Actor is updated. * 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); this.#migrateToAttributeItems(data, options);
return super.migrateData(data, options); return super.migrateData(data, options);
}; };