1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

only detach if created before

This commit is contained in:
Bruno Windels
2018-10-31 12:17:13 +01:00
parent ff383b4aa0
commit 1948e9bc17

View File

@ -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) {