Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
findShownChildInChildrenByKey,
findChildInChildrenByKey,
isSameChildren,
} from './ChildrenUtils';
} from './ChildrenUtils';
import AnimateChild from './AnimateChild';
const defaultKey = 'rc_animate_' + Date.now();
import animUtil from './util';
Expand Down Expand Up @@ -271,8 +271,8 @@ const Animate = React.createClass({
let children = null;
if (stateChildren) {
children = stateChildren.map((child) => {
if (!child.key) {
throw new Error('must set key for <rc-animate> children');
if (!child || !child.key) {
return child;
}
return (<AnimateChild
key={child.key}
Expand Down