Skip to content

Commit 9779cb9

Browse files
authored
fix for unmounting when child is not here anymore
1 parent 15445f0 commit 9779cb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueueAnim.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class QueueAnim extends React.Component {
195195
componentWillUnmount() {
196196
if (this.originalChildren && this.originalChildren.length > 0) {
197197
this.originalChildren.forEach(child => {
198-
if (this.refs[child.key]) {
198+
if (child && this.refs[child.key]) {
199199
velocity(findDOMNode(this.refs[child.key]), 'stop');
200200
}
201201
});

0 commit comments

Comments
 (0)