diff --git a/src/pages/home/report/ReportActionsView.tsx b/src/pages/home/report/ReportActionsView.tsx index 1d66e9d99c22..40cb54ed91fd 100755 --- a/src/pages/home/report/ReportActionsView.tsx +++ b/src/pages/home/report/ReportActionsView.tsx @@ -132,7 +132,12 @@ function ReportActionsView({ setCurrentReportActionID(''); }, [route]); + // Change the list ID only for comment linking to get the positioning right const listID = useMemo(() => { + if (!reportActionID) { + // Keep the old list ID since we're not in the Comment Linking flow + return listOldID; + } isFirstLinkedActionRender.current = true; const newID = generateNewRandomInt(listOldID, 1, Number.MAX_SAFE_INTEGER); listOldID = newID;