From: Hinaloe Date: Mon, 4 Nov 2019 11:58:19 +0000 (+0900) Subject: dont crash with null-ref (#12274) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=8568018935adbf5f59d9bf9a64069d7fa9821b04;p=mastodon.git dont crash with null-ref (#12274) --- diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js index 791ff9a2e..a45ba91eb 100644 --- a/app/javascript/mastodon/features/ui/index.js +++ b/app/javascript/mastodon/features/ui/index.js @@ -164,7 +164,9 @@ class SwitchingColumnsArea extends React.PureComponent { } setRef = c => { - this.node = c.getWrappedInstance(); + if (c) { + this.node = c.getWrappedInstance(); + } } render () {