Fix: déplacement de conteneur

This commit is contained in:
Vincent Vandemeulebrouck 2021-04-13 21:33:05 +02:00
parent 3152d87078
commit b4eb66bef5

View File

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