1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-11-28 09:24:05 +03:00

Guard onStatusBarVisible/Hidden with this.unmounted

This commit is contained in:
Luke Barnard
2017-01-26 17:03:01 +00:00
parent f06de1f129
commit 9c99dafba5

View File

@@ -1332,12 +1332,14 @@ module.exports = React.createClass({
},
onStatusBarVisible: function() {
if (this.unmounted) return;
this.setState({
statusBarVisible: true,
});
},
onStatusBarHidden: function() {
if (this.unmounted) return;
this.setState({
statusBarVisible: false,
});