Skip to content

Commit

Permalink
[server] filter ["academicMemberships", "3", "organization"] to ["aca…
Browse files Browse the repository at this point in the history
…demicMemberships", "organization"] (string vs number)
  • Loading branch information
t8g committed Sep 7, 2017
1 parent 5b35c2e commit 9af2540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/editLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function formatEdits(data, model){
.filter(dd => editLogsPathFilter(dd.path))
.map(dd => {
// remove index of element in array from path
const diff = {path: dd.path.filter(e => typeof e !== 'number')}
const diff = {path: dd.path.filter(e => isNaN(parseInt(e)))}

if (dd.kind === 'A'){
//array case...
Expand Down

0 comments on commit 9af2540

Please sign in to comment.