Fix running mm-i18n that crashes on conditional operators (#3386)

This commit is contained in:
Mattermost Build 2019-10-08 14:15:37 +02:00 committed by Elias Nahum
parent 9dd36bf15e
commit 04bedbc954

View file

@ -122,7 +122,9 @@ export default class DrawerLayout extends Component {
}
componentWillUnmount() {
this.openValue?.removeListener(this.handleOpenValueChanged);
if (this.openValue) {
this.openValue.removeListener(this.handleOpenValueChanged);
}
Dimensions.removeEventListener('change', this.handleDimensionsChange);
}