diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.tsx b/src/pages/home/report/ContextMenu/ContextMenuActions.tsx index d4497b983465..23daa4b7b2a3 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.tsx +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.tsx @@ -200,6 +200,7 @@ const ContextMenuActions: ContextMenuAction[] = [ return !ReportUtils.shouldDisableThread(reportAction, reportID); }, onPress: (closePopover, {reportAction, reportID}) => { + const originalReportID = ReportUtils.getOriginalReportID(reportID, reportAction); if (closePopover) { hideContextMenu(false, () => { InteractionManager.runAfterInteractions(() => { @@ -207,12 +208,11 @@ const ContextMenuActions: ContextMenuAction[] = [ // is false, so we need to pass true here to override this condition. ReportActionComposeFocusManager.focus(true); }); - Report.navigateToAndOpenChildReport(reportAction?.childReportID ?? '0', reportAction, reportID); + Report.navigateToAndOpenChildReport(reportAction?.childReportID ?? '0', reportAction, originalReportID); }); return; } - - Report.navigateToAndOpenChildReport(reportAction?.childReportID ?? '0', reportAction, reportID); + Report.navigateToAndOpenChildReport(reportAction?.childReportID ?? '0', reportAction, originalReportID); }, getDescription: () => {}, },