adds reactivity when undoing an event
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user