From efac4091a5469405d6f96dd4539a5d7c6d57824f Mon Sep 17 00:00:00 2001 From: daledah Date: Wed, 3 Dec 2025 13:02:20 +0700 Subject: [PATCH] fix: sub-header link appears to Approver after change approver --- src/libs/ReportUtils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 8e02c7c78831..0ffc803c4c79 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -6201,6 +6201,10 @@ function getPendingChatMembers(accountIDs: number[], previousPendingChatMembers: function getParentNavigationSubtitle(report: OnyxEntry, isParentReportArchived = false, reportAttributes?: ReportAttributesDerivedValue['reports']): ParentNavigationSummaryParams { const parentReport = getParentReport(report); + if (report?.hasParentAccess === false) { + return {}; + } + if (isEmptyObject(parentReport)) { const ownerAccountID = report?.ownerAccountID; const personalDetails = ownerAccountID ? allPersonalDetails?.[ownerAccountID] : undefined;