mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-20 11:35:29 +01:00
dont crash with null-ref (#12274)
This commit is contained in:
parent
3b609da9bd
commit
8568018935
@ -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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user