Add null check

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-04-09 08:05:49 +02:00
parent 7f496c7bf5
commit b723092ed2
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ export default class MessageContextMenu extends React.Component {
action: 'forward_event', action: 'forward_event',
event: this.props.mxEvent, event: this.props.mxEvent,
}); });
this.props.onCloseDialog(); if (this.props.onCloseDialog) this.props.onCloseDialog();
this.closeMenu(); this.closeMenu();
}; };