From a9162a88c3afeaa2b5ed3c6e55bb6962db9b7836 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Fri, 6 Dec 2024 14:31:09 -0700 Subject: [PATCH] rm optimization for transactions --- src/libs/SearchUIUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/SearchUIUtils.ts b/src/libs/SearchUIUtils.ts index e100fb885fff..c51eadf2c637 100644 --- a/src/libs/SearchUIUtils.ts +++ b/src/libs/SearchUIUtils.ts @@ -265,8 +265,8 @@ function getAction(data: OnyxTypes.SearchResults['data'], key: string): SearchTr return CONST.SEARCH.ACTION_TYPES.DONE; } - // We don't need to run the logic if this is not a transaction or iou/expense report, so let's shortcircuit the logic for performance reasons - if (!ReportUtils.isMoneyRequestReport(report) || (isTransaction && !data[key].isFromOneTransactionReport)) { + // We don't need to run the logic if this is not an iou/expense report, so let's shortcircuit the logic for performance reasons + if (!ReportUtils.isMoneyRequestReport(report)) { return CONST.SEARCH.ACTION_TYPES.VIEW; }