adds reactivity when undoing an event

This commit is contained in:
2019-10-28 16:08:05 +01:00
parent 8d1344e0b6
commit 1f2a940968
5 changed files with 39 additions and 29 deletions

View File

@@ -39,8 +39,9 @@ export default {
this.loot.push(i);
}
else if (update.ItemRemoved) {
var i = update.ItemRemoved;
this.loot.splice(this.loot.indexOf(i), 1);
var removed = update.ItemRemoved;
var idx = this.loot.findIndex(item => item.id == removed.id);
this.loot.splice(idx, 1);
}
else if (update.ClaimAdded) {
var c = update.ClaimAdded;