fix defaultCleared options not used when importTransactions (#5247)

This commit is contained in:
Ngoc Do
2025-07-20 00:33:08 +09:00
committed by GitHub
parent 76de8bf67f
commit 84dec137bb
3 changed files with 9 additions and 1 deletions

View File

@@ -1091,7 +1091,7 @@ async function importTransactions({
transactions: ImportTransactionEntity[];
isPreview: boolean;
opts?: {
defaultCleared: boolean;
defaultCleared?: boolean;
};
}): Promise<ImportTransactionsResult> {
if (typeof accountId !== 'string') {

View File

@@ -480,12 +480,14 @@ handlers['api/transactions-import'] = withMutation(async function ({
accountId,
transactions,
isPreview = false,
opts,
}) {
checkFileOpen();
return handlers['transactions-import']({
accountId,
transactions,
isPreview,
opts,
});
});

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [ngoc-minh-do]
---
Fix issue that importTransactions() options (defaultCleared) was not used