From 1e372aad47711332554ac9f7572b1c60f1cc8cbb Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 20 Mar 2019 11:10:04 +0100 Subject: [PATCH] only log when node was found --- src/components/structures/ScrollPanel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/structures/ScrollPanel.js b/src/components/structures/ScrollPanel.js index 1867a5abb0..36cf4dc018 100644 --- a/src/components/structures/ScrollPanel.js +++ b/src/components/structures/ScrollPanel.js @@ -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; }