From 7bc1fcb92aa2c5b473517180d2045b8150710eed Mon Sep 17 00:00:00 2001 From: akamefi202 Date: Fri, 13 Oct 2023 02:54:21 +0800 Subject: [PATCH] add comment --- src/libs/OptionsListUtils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index 0677da5b5fc5..dc64619b4b9e 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -553,6 +553,8 @@ function getPolicyExpenseReportOption(report) { forcePolicyNamePreview: false, }, ); + + // Update text & alternateText because createOption returns workspace name only if report is owned by the user option.text = ReportUtils.getPolicyName(report); option.alternateText = Localize.translateLocal('workspace.common.workspace'); option.selected = report.selected;