Merge pull request #3086 from matrix-org/dbkr/fix_exception_on_logout

Fix exception on logout
pull/21833/head
David Baker 2019-06-10 15:37:50 +01:00 committed by GitHub
commit a79ee4d048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,8 @@ export default class EmbeddedPage extends React.PureComponent {
constructor(props) {
super(props);
this._dispatcherRef = null;
this.state = {
page: '',
};
@ -90,7 +92,7 @@ export default class EmbeddedPage extends React.PureComponent {
componentWillUnmount() {
this._unmounted = true;
dis.unregister(this._dispatcherRef);
if (this._dispatcherRef !== null) dis.unregister(this._dispatcherRef);
}
onAction = (payload) => {