From 5387ee536f81f0446ee50e5790597acbad48d927 Mon Sep 17 00:00:00 2001 From: SP Singh Date: Wed, 26 Jul 2023 22:44:51 +1000 Subject: [PATCH 1/2] Hide report context from LHN on page re-render --- src/pages/home/sidebar/SidebarLinks.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/home/sidebar/SidebarLinks.js b/src/pages/home/sidebar/SidebarLinks.js index 9b40a06f358a..e76bda79b746 100644 --- a/src/pages/home/sidebar/SidebarLinks.js +++ b/src/pages/home/sidebar/SidebarLinks.js @@ -35,6 +35,7 @@ import * as UserUtils from '../../../libs/UserUtils'; import KeyboardShortcut from '../../../libs/KeyboardShortcut'; import onyxSubscribe from '../../../libs/onyxSubscribe'; import personalDetailsPropType from '../../personalDetailsPropType'; +import * as ReportActionContextMenu from "../report/ContextMenu/ReportActionContextMenu"; const basePropTypes = { /** Toggles the navigation menu open and closed */ @@ -109,6 +110,8 @@ class SidebarLinks extends React.PureComponent { true, true, ); + + ReportActionContextMenu.hideContextMenu(false); } componentWillUnmount() { From e8ee9d4f29f462c282aaf1034c15992abf67f7e6 Mon Sep 17 00:00:00 2001 From: SP Singh Date: Wed, 26 Jul 2023 22:54:15 +1000 Subject: [PATCH 2/2] Run prettier --- src/pages/home/sidebar/SidebarLinks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/sidebar/SidebarLinks.js b/src/pages/home/sidebar/SidebarLinks.js index e76bda79b746..5747ed0e1d4a 100644 --- a/src/pages/home/sidebar/SidebarLinks.js +++ b/src/pages/home/sidebar/SidebarLinks.js @@ -35,7 +35,7 @@ import * as UserUtils from '../../../libs/UserUtils'; import KeyboardShortcut from '../../../libs/KeyboardShortcut'; import onyxSubscribe from '../../../libs/onyxSubscribe'; import personalDetailsPropType from '../../personalDetailsPropType'; -import * as ReportActionContextMenu from "../report/ContextMenu/ReportActionContextMenu"; +import * as ReportActionContextMenu from '../report/ContextMenu/ReportActionContextMenu'; const basePropTypes = { /** Toggles the navigation menu open and closed */