1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Add null check

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-04-09 08:05:49 +02:00
parent 7f496c7bf5
commit b723092ed2

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();
}; };