Skip to content

Commit

Permalink
Merge pull request #48842 from Expensify/cmartins-fixDeletedMessage
Browse files Browse the repository at this point in the history
[CP Staging] Fix deleted message on search
  • Loading branch information
luacmartins authored Sep 9, 2024
2 parents 327c969 + 96e757d commit ee3cca1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libs/SearchUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import DateUtils from './DateUtils';
import {translateLocal} from './Localize';
import navigationRef from './Navigation/navigationRef';
import type {AuthScreensParamList, RootStackParamList, State} from './Navigation/types';
import * as ReportActionsUtils from './ReportActionsUtils';
import * as searchParser from './SearchParser/searchParser';
import * as TransactionUtils from './TransactionUtils';
import * as UserUtils from './UserUtils';
Expand Down Expand Up @@ -200,6 +201,10 @@ function getReportActionsSections(data: OnyxTypes.SearchResults['data']): Report
const reportActions = data[key];
for (const reportAction of Object.values(reportActions)) {
const from = data.personalDetailsList?.[reportAction.accountID];
if (ReportActionsUtils.isDeletedAction(reportAction)) {
// eslint-disable-next-line no-continue
continue;
}
reportActionItems.push({
...reportAction,
from,
Expand Down

0 comments on commit ee3cca1

Please sign in to comment.