dont crash with null-ref (#12274)
This commit is contained in:
1 parent
3b609da9bd
commit
8568018935
1 file changed
+3
-1
@@ -164,7 +164,9 @@ class SwitchingColumnsArea extends React.PureComponent {
|
||||
}
|
||||
|
||||
setRef = c => {
|
||||
this.node = c.getWrappedInstance();
|
||||
if (c) {
|
||||
this.node = c.getWrappedInstance();
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
|
||||
Reference in new issue
Block a user