Skip to content

Commit

Permalink
Null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Brain committed Jun 14, 2016
1 parent f817148 commit 27cbe0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export let util = {

if (result !== undefined) {
newobj[key] = result;
} else if (typeof item === 'object') {
} else if (typeof item === 'object' && item !== null) {
newobj[key] = util.replaceObject(item, callback);
} else {
newobj[key] = item;
Expand Down

0 comments on commit 27cbe0d

Please # to comment.