Skip to content

Commit

Permalink
fix another structural sharing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adambiltcliffe committed Jun 6, 2019
1 parent 9507506 commit 33e8c3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ class Game {
this[context].filters[filterKey]
);
this[context].diffs[filterKey].push(
JSON_delta.diff(views[filterKey], updatedViews[filterKey])
// Have to deepcopy here as otherwise proxy elements end up in the diff
deepcopy(JSON_delta.diff(views[filterKey], updatedViews[filterKey]))
);
}
}
Expand Down

0 comments on commit 33e8c3c

Please sign in to comment.