Fix running mm-i18n that crashes on conditional operators (#3386)
This commit is contained in:
parent
9dd36bf15e
commit
04bedbc954
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue