@@ -18,7 +18,17 @@ import usePolicyForMovingExpenses from '@hooks/usePolicyForMovingExpenses';
1818import useReportTransactions from '@hooks/useReportTransactions' ;
1919import Navigation from '@libs/Navigation/Navigation' ;
2020import { canSubmitPerDiemExpenseFromWorkspace , getPersonalPolicy , isPolicyAdmin } from '@libs/PolicyUtils' ;
21- import { canAddTransaction , getOutstandingReportsForUser , getPolicyName , isIOUReport , isOpenReport , isReportOwner , isSelfDM , sortOutstandingReportsBySelected } from '@libs/ReportUtils' ;
21+ import {
22+ canAddTransaction ,
23+ getOutstandingReportsForUser ,
24+ getPolicyName ,
25+ getReportName ,
26+ isIOUReport ,
27+ isOpenReport ,
28+ isReportOwner ,
29+ isSelfDM ,
30+ sortOutstandingReportsBySelected ,
31+ } from '@libs/ReportUtils' ;
2232import CONST from '@src/CONST' ;
2333import ONYXKEYS from '@src/ONYXKEYS' ;
2434import type { Route } from '@src/ROUTES' ;
@@ -173,11 +183,12 @@ function IOURequestEditReportCommon({
173183 . map ( ( report ) => {
174184 const matchingOption = options . reports . find ( ( option ) => option . reportID === report . reportID ) ;
175185 return {
176- ...matchingOption ,
186+ ...( matchingOption ?? report ) ,
177187 // We are shallow copying properties from matchingOption, so if it has a brickRoadIndicator, it will display RBR.
178188 // We set it to null here to prevent showing RBR for reports https://github.com/Expensify/App/issues/65960.
179189 brickRoadIndicator : null ,
180190 alternateText : getPolicyName ( { report} ) ?? matchingOption ?. alternateText ,
191+ text : getReportName ( report ) ,
181192 value : report . reportID ,
182193 keyForList : report . reportID ,
183194 isSelected : report . reportID === selectedReportID ,
0 commit comments