diff --git a/src/components/SelectionList/BaseSelectionList.tsx b/src/components/SelectionList/BaseSelectionList.tsx index 503f7d11d2da..ae70e5525393 100644 --- a/src/components/SelectionList/BaseSelectionList.tsx +++ b/src/components/SelectionList/BaseSelectionList.tsx @@ -166,7 +166,7 @@ function BaseSelectionList( itemLayouts.push({length: fullItemHeight, offset}); offset += fullItemHeight; - if (item.isSelected && !selectedOptions.find((option) => option.text === item.text)) { + if (item.isSelected && !selectedOptions.find((option) => option.keyForList === item.keyForList)) { selectedOptions.push(item); } }); diff --git a/src/libs/SearchUtils.ts b/src/libs/SearchUtils.ts index a76e14fe0290..10661945154d 100644 --- a/src/libs/SearchUtils.ts +++ b/src/libs/SearchUtils.ts @@ -167,6 +167,12 @@ function getReportSections(data: OnyxTypes.SearchResults['data'], metadata: Onyx reportIDToTransactions[reportKey] = { ...value, +<<<<<<< HEAD +======= + keyForList: value.reportID, + from: data.personalDetailsList?.[value.accountID], + to: data.personalDetailsList?.[value.managerID], +>>>>>>> 87f5cdd7 (Merge pull request #44882 from nkdengineer/fix/44801) transactions, }; } else if (key.startsWith(ONYXKEYS.COLLECTION.TRANSACTION)) {