From 93b341626d81df1266019ce21f56a6e8d569ccb3 Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Thu, 14 Aug 2025 19:18:36 +0530 Subject: [PATCH 1/2] fix: iOS - Reports-export expense offline, alert message indicating action can't be taken not display. Signed-off-by: krishna2323 --- src/pages/Search/SearchPage.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/Search/SearchPage.tsx b/src/pages/Search/SearchPage.tsx index 8e5b069ee90a..dfd83198cf22 100644 --- a/src/pages/Search/SearchPage.tsx +++ b/src/pages/Search/SearchPage.tsx @@ -174,11 +174,16 @@ function SearchPage({route}: SearchPageProps) { clearSelectedTransactions(undefined, true); }, shouldCloseModalOnSelect: true, + shouldCallAfterModalHide: true, }, { text: translate('export.expenseLevelExport'), icon: Expensicons.Table, onSelected: () => { + if (isOffline) { + setIsOfflineModalVisible(true); + return; + } // The report level export template is not policy specific, so we don't need to pass a policyID beginExportWithTemplate(CONST.REPORT.EXPORT_OPTIONS.EXPENSE_LEVEL_EXPORT, CONST.EXPORT_TEMPLATE_TYPES.INTEGRATIONS, undefined); }, From b0095c1d98bf958fe5a4706b605c39064da1466e Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Thu, 14 Aug 2025 19:26:04 +0530 Subject: [PATCH 2/2] remove offline modal alert for expenseLevelExport. Signed-off-by: krishna2323 --- src/pages/Search/SearchPage.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pages/Search/SearchPage.tsx b/src/pages/Search/SearchPage.tsx index dfd83198cf22..2d23e7818cb2 100644 --- a/src/pages/Search/SearchPage.tsx +++ b/src/pages/Search/SearchPage.tsx @@ -180,10 +180,6 @@ function SearchPage({route}: SearchPageProps) { text: translate('export.expenseLevelExport'), icon: Expensicons.Table, onSelected: () => { - if (isOffline) { - setIsOfflineModalVisible(true); - return; - } // The report level export template is not policy specific, so we don't need to pass a policyID beginExportWithTemplate(CONST.REPORT.EXPORT_OPTIONS.EXPENSE_LEVEL_EXPORT, CONST.EXPORT_TEMPLATE_TYPES.INTEGRATIONS, undefined); },