Skip to content

Commit

Permalink
Merge pull request #248 from crudh/fix-not-truthy-merger-results
Browse files Browse the repository at this point in the history
Fix non truthy custom merger results
  • Loading branch information
crudh committed Aug 28, 2018
2 parents 0c6675b + 20980c7 commit a6e1b5e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion seamless-immutable.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ function immutableInit(config) {

var newValue;

if (mergerResult) {
if (mergerResult !== undefined) {
newValue = mergerResult;
} else if (deep && isMergableObject(currentValue) && isMergableObject(immutableValue)) {
newValue = Immutable.merge(currentValue, immutableValue, config);
Expand Down
2 changes: 1 addition & 1 deletion seamless-immutable.development.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a6e1b5e

Please sign in to comment.