1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-24 15:16:26 +09:00

dont crash with null-ref (#12274)

This commit is contained in:
Hinaloe 2019-11-04 20:58:19 +09:00 committed by Eugen Rochko
parent 3b609da9bd
commit 8568018935

View File

@ -164,7 +164,9 @@ class SwitchingColumnsArea extends React.PureComponent {
} }
setRef = c => { setRef = c => {
this.node = c.getWrappedInstance(); if (c) {
this.node = c.getWrappedInstance();
}
} }
render () { render () {