From e16fb74e0840504f4aee89528f1b4e8f313adf22 Mon Sep 17 00:00:00 2001
From: OlimpiaZurek <olimpia.zurek@gmail.com>
Date: Fri, 29 Sep 2023 12:59:36 +0200
Subject: [PATCH] fix composer focus after deleting a message from edit mode

---
 .../home/report/ContextMenu/PopoverReportActionContextMenu.js   | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js
index 4f09df7330ff..7328f02adc5f 100644
--- a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js
+++ b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js
@@ -321,8 +321,6 @@ function PopoverReportActionContextMenu(_props, ref) {
                 onConfirm={confirmDeleteAndHideModal}
                 onCancel={hideDeleteModal}
                 onModalHide={() => {
-                    reportIDRef.current = '0';
-                    reportActionRef.current = {};
                     callbackWhenDeleteModalHide.current();
                 }}
                 prompt={translate('reportActionContextMenu.deleteConfirmation', {action: reportAction})}