only detach if created before
This commit is contained in:
@@ -55,8 +55,10 @@ export default class MainSplit extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
this.resizer.detach();
|
if (this.resizer) {
|
||||||
this.resizer = null;
|
this.resizer.detach();
|
||||||
|
this.resizer = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
|
|||||||
Reference in New Issue
Block a user