Skip to content

Commit

Permalink
Merge pull request #90 from richardcrng/null-branches
Browse files Browse the repository at this point in the history
make sure branch is a plain object
  • Loading branch information
richardcrng authored Jul 7, 2019
2 parents 40feecd + cb86d37 commit 86292a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/for/actionsFor.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const createFor = (stateShape, customReducers, pathToLeafOrBranch = []) => {

const isBranch = leafOrBranch => (
(!Array.isArray(leafOrBranch)
&& typeof leafOrBranch === "object"
&& RA.isPlainObj(leafOrBranch)
&& Object.values(leafOrBranch).length >= 1)
)

Expand Down

0 comments on commit 86292a2

Please sign in to comment.