Fix actor creation throwing an error (closes #89)
This commit is contained in:
parent
a34525f05e
commit
dddad7f55d
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue