about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorHinaloe <hina@hinaloe.net>2019-11-04 20:58:19 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-11-04 12:58:19 +0100
commit8568018935adbf5f59d9bf9a64069d7fa9821b04 (patch)
tree786cc9be39a2a543485c7739be5a2626d2805f82 /app
parent3b609da9bdf9cbfc7fe2080b23735533764771ed (diff)
dont crash with null-ref (#12274)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/ui/index.js4
1 files changed, 3 insertions, 1 deletions
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 () {