From 2cb7647fc445f09d7191129db610e229a4ae67c6 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck <vincent.vandemeulebrouck@itiviti.com> Date: Thu, 4 Mar 2021 23:28:01 +0100 Subject: [PATCH] =?UTF-8?q?=5FupdateObject=20doit=20=C3=AAtre=20async?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > It looks to me like there are a few instances of DocumentSheet > subclasses which fail to correctly mark their _updateObject > method as async --- module/actor-creature-sheet.js | 2 +- module/actor-entite-sheet.js | 2 +- module/actor-sheet.js | 2 +- module/actor-vehicule-sheet.js | 2 +- module/item-sheet.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/actor-creature-sheet.js b/module/actor-creature-sheet.js index b9a820d7..befa01e2 100644 --- a/module/actor-creature-sheet.js +++ b/module/actor-creature-sheet.js @@ -100,7 +100,7 @@ export class RdDActorCreatureSheet extends RdDActorSheet { /* -------------------------------------------- */ /** @override */ - _updateObject(event, formData) { + async _updateObject(event, formData) { // Update the Actor return this.object.update(formData); } diff --git a/module/actor-entite-sheet.js b/module/actor-entite-sheet.js index 8e9f3c93..b468eb2f 100644 --- a/module/actor-entite-sheet.js +++ b/module/actor-entite-sheet.js @@ -135,7 +135,7 @@ export class RdDActorEntiteSheet extends ActorSheet { /* -------------------------------------------- */ /** @override */ - _updateObject(event, formData) { + async _updateObject(event, formData) { // Update the Actor return this.object.update(formData); } diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 15b7f27c..71940fd1 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -580,7 +580,7 @@ export class RdDActorSheet extends ActorSheet { /* -------------------------------------------- */ /** @override */ - _updateObject(event, formData) { + async _updateObject(event, formData) { // Update the Actor return this.object.update(formData); } diff --git a/module/actor-vehicule-sheet.js b/module/actor-vehicule-sheet.js index a2dd0cb3..a9306968 100644 --- a/module/actor-vehicule-sheet.js +++ b/module/actor-vehicule-sheet.js @@ -102,7 +102,7 @@ export class RdDActorVehiculeSheet extends ActorSheet { /* -------------------------------------------- */ /** @override */ - _updateObject(event, formData) { + async _updateObject(event, formData) { // Update the Actor return this.object.update(formData); } diff --git a/module/item-sheet.js b/module/item-sheet.js index 093ce575..3e8f43ff 100644 --- a/module/item-sheet.js +++ b/module/item-sheet.js @@ -127,7 +127,7 @@ export class RdDItemSheet extends ItemSheet { /* -------------------------------------------- */ /** @override */ - _updateObject(event, formData) { + async _updateObject(event, formData) { // Données de bonus de cases ? formData = RdDItemSort.buildBonusCaseStringFromFormData( formData ); //console.log("HERE", this, formData, this.object.data );