[Glitch] dont crash with null-ref
Port f28877756e
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
0a29988edf
commit
4825d33aef
1 changed files with 3 additions and 1 deletions
|
@ -174,7 +174,9 @@ class SwitchingColumnsArea extends React.PureComponent {
|
|||
}
|
||||
|
||||
setRef = c => {
|
||||
this.node = c.getWrappedInstance();
|
||||
if (c) {
|
||||
this.node = c.getWrappedInstance();
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
|
|
Loading…
Reference in a new issue