From: Hinaloe Date: Mon, 4 Nov 2019 11:58:19 +0000 (+0900) Subject: [Glitch] dont crash with null-ref X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=f940c5a1fb983e831a1d2333557369c1d77652c6;p=mastodon.git [Glitch] dont crash with null-ref Port 8568018935adbf5f59d9bf9a64069d7fa9821b04 to glitch-soc Signed-off-by: Thibaut Girka --- diff --git a/app/javascript/flavours/glitch/features/ui/index.js b/app/javascript/flavours/glitch/features/ui/index.js index e5925a484..646def8f2 100644 --- a/app/javascript/flavours/glitch/features/ui/index.js +++ b/app/javascript/flavours/glitch/features/ui/index.js @@ -174,7 +174,9 @@ class SwitchingColumnsArea extends React.PureComponent { } setRef = c => { - this.node = c.getWrappedInstance(); + if (c) { + this.node = c.getWrappedInstance(); + } } render () {