You've already forked matrix-react-sdk
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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user