_updateObject doit être async
> It looks to me like there are a few instances of DocumentSheet > subclasses which fail to correctly mark their _updateObject > method as async
This commit is contained in:
		| @@ -100,7 +100,7 @@ export class RdDActorCreatureSheet extends RdDActorSheet { | |||||||
|  |  | ||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|   /** @override */ |   /** @override */ | ||||||
|   _updateObject(event, formData) { |   async _updateObject(event, formData) { | ||||||
|     // Update the Actor |     // Update the Actor | ||||||
|     return this.object.update(formData); |     return this.object.update(formData); | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -135,7 +135,7 @@ export class RdDActorEntiteSheet extends ActorSheet { | |||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|  |  | ||||||
|   /** @override */ |   /** @override */ | ||||||
|   _updateObject(event, formData) { |   async _updateObject(event, formData) { | ||||||
|     // Update the Actor |     // Update the Actor | ||||||
|     return this.object.update(formData); |     return this.object.update(formData); | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -580,7 +580,7 @@ export class RdDActorSheet extends ActorSheet { | |||||||
|  |  | ||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|   /** @override */ |   /** @override */ | ||||||
|   _updateObject(event, formData) { |   async _updateObject(event, formData) { | ||||||
|     // Update the Actor |     // Update the Actor | ||||||
|     return this.object.update(formData); |     return this.object.update(formData); | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -102,7 +102,7 @@ export class RdDActorVehiculeSheet extends ActorSheet { | |||||||
|  |  | ||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|   /** @override */ |   /** @override */ | ||||||
|   _updateObject(event, formData) { |   async _updateObject(event, formData) { | ||||||
|     // Update the Actor |     // Update the Actor | ||||||
|     return this.object.update(formData); |     return this.object.update(formData); | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -127,7 +127,7 @@ export class RdDItemSheet extends ItemSheet { | |||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|  |  | ||||||
|   /** @override */ |   /** @override */ | ||||||
|   _updateObject(event, formData) { |   async _updateObject(event, formData) { | ||||||
|     // Données de bonus de cases ? |     // Données de bonus de cases ? | ||||||
|     formData = RdDItemSort.buildBonusCaseStringFromFormData( formData ); |     formData = RdDItemSort.buildBonusCaseStringFromFormData( formData ); | ||||||
|     //console.log("HERE", this, formData, this.object.data ); |     //console.log("HERE", this, formData, this.object.data ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user