Skip to content

Commit

Permalink
fix: Use fork of jsondiffpatch to prevent webpack from complaining
Browse files Browse the repository at this point in the history
Closes #67
  • Loading branch information
d4rkr00t committed Sep 1, 2017
1 parent a3aee34 commit c0bc6c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -34,7 +34,7 @@
"html": "^1.0.0",
"ie-array-find-polyfill": "^1.1.0",
"javascript-stringify": "^1.6.0",
"jsondiffpatch": "^0.2.4",
"jsondiffpatch": "github:d4rkr00t/jsondiffpatch#d80390b4354befe55802e292122b8059462c1b7d",
"prosemirror-model": "*",
"prosemirror-state": "*",
"react-dock": "^0.2.3",
Expand Down
13 changes: 6 additions & 7 deletions src/tabs/schema.js
Expand Up @@ -12,13 +12,12 @@ export function postprocessValue(ignore, data) {
if (!data || Object.prototype.toString.call(data) !== "[object Object]")
return data;

return Object.keys(data).filter(key => ignore.indexOf(key) === -1).reduce((
res,
key
) => {
res[key] = data[key];
return res;
}, {});
return Object.keys(data)
.filter(key => ignore.indexOf(key) === -1)
.reduce((res, key) => {
res[key] = data[key];
return res;
}, {});
}

export default connect(
Expand Down

0 comments on commit c0bc6c3

Please sign in to comment.