Null-guard RR logic

pull/21833/head
Luke Barnard 2017-07-10 15:07:22 +01:00
parent 3718bc399f
commit 66525f6826
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ module.exports = React.createClass({
});
//console.log("translation: "+oldNode.style.left+" -> "+c.props.style.left);
}
if (oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') {
if (oldNode && oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') {
oldNode.style.visibility = c.props.style.visibility;
}
self.children[c.key] = old;