Skip to content

Commit

Permalink
fix state children is null
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Apr 11, 2018
1 parent 4d820c6 commit 543ef30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueueAnim.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class QueueAnim extends React.Component {
* 如果 state.children 里还有元素,元素还在动画,当前子级加回在出场的子级;
*/
const leaveChild = this.state.children.filter(item =>
this.keysToLeave.indexOf(item.key) >= 0
item && this.keysToLeave.indexOf(item.key) >= 0
);
currentChildren = mergeChildren(currentChildren, leaveChild);
}
Expand Down

0 comments on commit 543ef30

Please sign in to comment.