only log when node was found

pull/21833/head
Bruno Windels 2019-03-20 11:10:04 +01:00
parent c306181fcd
commit 1e372aad47
1 changed files with 3 additions and 1 deletions

View File

@ -665,7 +665,9 @@ module.exports = React.createClass({
break;
}
}
debuglog("had to find tracked node again for " + scrollState.trackedScrollToken);
if (node) {
debuglog("had to find tracked node again for " + scrollState.trackedScrollToken);
}
scrollState.trackedNode = node;
}