mirror of https://github.com/vector-im/riot-web
Merge pull request #3086 from matrix-org/dbkr/fix_exception_on_logout
Fix exception on logoutpull/21833/head
commit
a79ee4d048
|
@ -46,6 +46,8 @@ export default class EmbeddedPage extends React.PureComponent {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
|
this._dispatcherRef = null;
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
page: '',
|
page: '',
|
||||||
};
|
};
|
||||||
|
@ -90,7 +92,7 @@ export default class EmbeddedPage extends React.PureComponent {
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
this._unmounted = true;
|
this._unmounted = true;
|
||||||
dis.unregister(this._dispatcherRef);
|
if (this._dispatcherRef !== null) dis.unregister(this._dispatcherRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
onAction = (payload) => {
|
onAction = (payload) => {
|
||||||
|
|
Loading…
Reference in New Issue