mirror of https://github.com/vector-im/riot-web
only detach if created before
parent
ff383b4aa0
commit
1948e9bc17
|
@ -55,8 +55,10 @@ export default class MainSplit extends React.Component {
|
|||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.resizer.detach();
|
||||
this.resizer = null;
|
||||
if (this.resizer) {
|
||||
this.resizer.detach();
|
||||
this.resizer = null;
|
||||
}
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
|
|
Loading…
Reference in New Issue