Skip to content

Commit

Permalink
fix(edit-logs): fixes wrong call to flattenDiff
Browse files Browse the repository at this point in the history
  • Loading branch information
naholyr committed Sep 6, 2017
1 parent 5788cff commit 4fc0884
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/routes/editLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ function formatEdits(data, model){
edit.action = d.action

if (edit.action === 'update'){
edit.diff = d.diff
.map(flattenDiff)
edit.diff = flattenDiff(d.diff)
.map(dd => {
// remove index of element in array from path
const diff = {path: dd.path.filter(e => typeof e !== 'number')}
Expand Down

0 comments on commit 4fc0884

Please sign in to comment.