mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Null guard on componentWillUnmount
This commit is contained in:
parent
8a511ed54b
commit
ec41fc284a
1 changed files with 4 additions and 1 deletions
|
@ -108,7 +108,10 @@ module.exports = React.createClass({
|
||||||
middleOpacity: 1.0,
|
middleOpacity: 1.0,
|
||||||
});
|
});
|
||||||
dis.unregister(this.dispatcherRef);
|
dis.unregister(this.dispatcherRef);
|
||||||
MatrixClientPeg.get().removeListener("RoomMember.membership", this._onInviteStateChange);
|
let cli = MatrixClientPeg.get();
|
||||||
|
if (cli) {
|
||||||
|
cli.removeListener("RoomMember.membership", this._onInviteStateChange);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_refreshFromServer: function() {
|
_refreshFromServer: function() {
|
||||||
|
|
Loading…
Reference in a new issue