Commit 32768db3 authored by Robert Knight's avatar Robert Knight

Fix unintentional assignment to existing object

parent fe502753
......@@ -159,7 +159,7 @@ var update = {
});
if (newAnn.moderation) {
var countDelta = action.isFlagged ? 1 : -1;
newAnn.moderation = Object.assign(annot.moderation, {
newAnn.moderation = Object.assign({}, annot.moderation, {
flagCount: annot.moderation.flagCount + countDelta,
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment