[Glitch] dont crash with null-ref
Port 8568018935adbf5f59d9bf9a64069d7fa9821b04 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
f2fc7246e1
commit
f940c5a1fb
@ -174,8 +174,10 @@ class SwitchingColumnsArea extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setRef = c => {
|
setRef = c => {
|
||||||
|
if (c) {
|
||||||
this.node = c.getWrappedInstance();
|
this.node = c.getWrappedInstance();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const { children, navbarUnder } = this.props;
|
const { children, navbarUnder } = this.props;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user