dont crash with null-ref (#12274)

lolsob-rspec
Hinaloe 2019-11-04 20:58:19 +09:00 committed by Eugen Rochko
parent 6d6154eec0
commit f28877756e
1 changed files with 3 additions and 1 deletions

View File

@ -164,8 +164,10 @@ class SwitchingColumnsArea extends React.PureComponent {
} }
setRef = c => { setRef = c => {
if (c) {
this.node = c.getWrappedInstance(); this.node = c.getWrappedInstance();
} }
}
render () { render () {
const { children } = this.props; const { children } = this.props;