Skip to content

Commit 1ce7fff

Browse files
authored
Merge pull request #15 from plandem/patch-1
fix for unmounting when child is not here anymore
2 parents 15445f0 + 9779cb9 commit 1ce7fff

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)