Skip to content

Commit

Permalink
whoops, calculate does the arity check
Browse files Browse the repository at this point in the history
  • Loading branch information
colbyr committed Jul 14, 2016
1 parent 0560b4e commit 8906900
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/dependencies/DependencyMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,7 @@ export function calculateForPropsChange(
return oFilterMap(
dependencies,
(dep) => dep.deref && dep.deref.length > 0,
(dep) => {
if (dep.deref.length === 1) {
return calculate(dep, props);
}
return calculate(dep, props, state);
}
(dep) => calculate(dep, props, state)
);
}

Expand Down

0 comments on commit 8906900

Please sign in to comment.