[Glitch] dont crash with null-ref
Port f28877756e
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
lolsob-rspec
parent
0a29988edf
commit
4825d33aef
|
@ -174,8 +174,10 @@ class SwitchingColumnsArea extends React.PureComponent {
|
|||
}
|
||||
|
||||
setRef = c => {
|
||||
if (c) {
|
||||
this.node = c.getWrappedInstance();
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
const { children, navbarUnder } = this.props;
|
||||
|
|
Loading…
Reference in New Issue