Fix: drag&drop de tokens de véhicule

Erreur lors de l'update de l'acteur:

You must provide an _id for every object in the update data Array.
...
    at async RdDActor.updateAttributeValue (actor.js:1079:5)
    at async RdDActor.computeMalusArmure (actor.js:1352:7)
    at async RdDActor.computeEncombrementTotalEtMalusArmure
           (actor.js:1333:7)
This commit is contained in:
Vincent Vandemeulebrouck 2022-04-28 00:17:40 +02:00
parent 87998801e3
commit 0d70d9ef83

View File

@ -68,6 +68,9 @@ export class RdDActorVehiculeSheet extends ActorSheet {
return formData;
}
async computeMalusArmure() {
// pas de malus armure
}
/* -------------------------------------------- */
async _onDropItem(event, dragData) {
const destItemId = $(event.target)?.closest('.item').attr('data-item-id');