From b723092ed2e26f24c73ce15bff7bbf489af10968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 9 Apr 2021 08:05:49 +0200 Subject: [PATCH] Add null check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/context_menus/MessageContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js index cce628120c..af7b7178c7 100644 --- a/src/components/views/context_menus/MessageContextMenu.js +++ b/src/components/views/context_menus/MessageContextMenu.js @@ -197,7 +197,7 @@ export default class MessageContextMenu extends React.Component { action: 'forward_event', event: this.props.mxEvent, }); - this.props.onCloseDialog(); + if (this.props.onCloseDialog) this.props.onCloseDialog(); this.closeMenu(); };