From a05c2579587a95bd92308ae619217f37c31473bb Mon Sep 17 00:00:00 2001 From: truph01 Date: Fri, 30 Jan 2026 07:48:53 +0700 Subject: [PATCH 1/3] fix: Unable to basic export expense when in group-by view --- src/pages/Search/SearchPage.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/Search/SearchPage.tsx b/src/pages/Search/SearchPage.tsx index a6089001a18a1..0011c3f4af90e 100644 --- a/src/pages/Search/SearchPage.tsx +++ b/src/pages/Search/SearchPage.tsx @@ -329,7 +329,11 @@ function SearchPage({route}: SearchPageProps) { { query: status, jsonQuery: JSON.stringify(queryJSON), - reportIDList: selectedReports?.map((report) => report?.reportID).filter((reportID) => reportID !== undefined) ?? [], + reportIDList: + selectedReports.length > 0 + ? (selectedReports.map((report) => report?.reportID).filter((reportID) => reportID !== undefined) ?? []) + : (Object.values(selectedTransactions ?? {}).map((transaction) => transaction?.reportID ?? '') ?? []), + transactionIDList: selectedTransactionsKeys, }, () => { From 94ba1a21bf34e370b2b056fd155f41433d392737 Mon Sep 17 00:00:00 2001 From: truph01 Date: Tue, 10 Feb 2026 14:48:11 +0700 Subject: [PATCH 2/3] fix: lint --- src/pages/Search/SearchPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Search/SearchPage.tsx b/src/pages/Search/SearchPage.tsx index 1d4c17e06fc7d..b728d2881b3db 100644 --- a/src/pages/Search/SearchPage.tsx +++ b/src/pages/Search/SearchPage.tsx @@ -375,7 +375,9 @@ function SearchPage({route}: SearchPageProps) { reportIDList: selectedReports.length > 0 ? (selectedReports.map((report) => report?.reportID).filter((reportID) => reportID !== undefined) ?? []) - : (Object.values(selectedTransactions ?? {}).map((transaction) => transaction?.reportID ?? '') ?? []), + : (Object.values(selectedTransactions ?? {}) + .map((transaction) => transaction?.reportID) + ?.filter((reportID) => reportID !== undefined) ?? []), transactionIDList: selectedTransactionsKeys, }, From f4a4b6e77e43b91ab5d77dba26ebbac14dd53e1f Mon Sep 17 00:00:00 2001 From: truph01 Date: Tue, 17 Feb 2026 08:30:46 +0700 Subject: [PATCH 3/3] fix: apply bot's comment --- src/pages/Search/SearchPage.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/Search/SearchPage.tsx b/src/pages/Search/SearchPage.tsx index e60fab4269257..a39d17a6d38ed 100644 --- a/src/pages/Search/SearchPage.tsx +++ b/src/pages/Search/SearchPage.tsx @@ -362,13 +362,7 @@ function SearchPage({route}: SearchPageProps) { { query: status, jsonQuery: JSON.stringify(queryJSON), - reportIDList: - selectedReports.length > 0 - ? (selectedReports.map((report) => report?.reportID).filter((reportID) => reportID !== undefined) ?? []) - : (Object.values(selectedTransactions ?? {}) - .map((transaction) => transaction?.reportID) - ?.filter((reportID) => reportID !== undefined) ?? []), - + reportIDList: selectedReports.length > 0 ? selectedReportIDs : selectedTransactionReportIDs, transactionIDList: selectedTransactionsKeys, }, () => {