From b36df7330061d28c31c20ef4934e3d945a166af7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 19 Dec 2019 16:09:19 +0000 Subject: [PATCH] fix for ref refactor pr --- src/components/structures/TimelinePanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index 9d929d313b..53ae240653 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -1136,7 +1136,7 @@ const TimelinePanel = createReactClass({ const allowPartial = opts.allowPartial || false; const messagePanel = this._messagePanel.current; - if (messagePanel === undefined) return null; + if (!messagePanel) return null; const EventTile = sdk.getComponent('rooms.EventTile');