Skip to content

Commit

Permalink
Merge pull request #29424 from akamefi202/split-details-workspace-name
Browse files Browse the repository at this point in the history
update text and alternateText in getPolicyExpenseReportOption function
  • Loading branch information
lakchote authored Oct 13, 2023
2 parents be18d1e + 1ef2811 commit be54929
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ 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(expenseReport);
option.alternateText = Localize.translateLocal('workspace.common.workspace');
option.selected = report.selected;
return option;
}
Expand Down

0 comments on commit be54929

Please sign in to comment.