Fix: déplacement de contenu rangé

This commit is contained in:
Vincent Vandemeulebrouck 2022-09-24 01:05:32 +02:00
parent be0c0fbf3a
commit 4bab69b88f

View File

@ -1251,7 +1251,7 @@ export class RdDActor extends Actor {
let newItemId = itemMap[item.id]; // Get newItem
console.log('New conteneur filling!', newConteneur, newItemId, item);
let contenu = duplicate(this.system.contenu);
let contenu = duplicate(newConteneur.system.contenu);
contenu.push(newItemId);
await this.updateEmbeddedDocuments('Item', [{ _id: newConteneurId, 'system.contenu': contenu }]);
}