From f47354056952550a40033845af48827cbf1609aa Mon Sep 17 00:00:00 2001 From: Qichen Zhu <57348009+QichenZhu@users.noreply.github.com> Date: Thu, 11 Dec 2025 18:56:25 +1300 Subject: [PATCH] Hide Change approver option when Add approvals is disabled in Workflows --- src/libs/SearchUIUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/SearchUIUtils.ts b/src/libs/SearchUIUtils.ts index 06278f12c7247..78b5d6de209a2 100644 --- a/src/libs/SearchUIUtils.ts +++ b/src/libs/SearchUIUtils.ts @@ -1317,7 +1317,8 @@ function getActions( allActions.push(CONST.SEARCH.ACTION_TYPES.SUBMIT); } - if (report && policy && isPolicyAdmin(policy) && isExpenseReportUtil(report) && isProcessingReport(report) && !isMoneyRequestReportPendingDeletion(report)) { + const isApprovalEnabled = policy?.approvalMode && policy.approvalMode !== CONST.POLICY.APPROVAL_MODE.OPTIONAL; + if (report && policy && isPolicyAdmin(policy) && isExpenseReportUtil(report) && isProcessingReport(report) && !isMoneyRequestReportPendingDeletion(report) && isApprovalEnabled) { allActions.push(CONST.SEARCH.ACTION_TYPES.CHANGE_APPROVER); }