mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 03:32:54 -05:00
fix defaultCleared options not used when importTransactions (#5247)
This commit is contained in:
@@ -1091,7 +1091,7 @@ async function importTransactions({
|
||||
transactions: ImportTransactionEntity[];
|
||||
isPreview: boolean;
|
||||
opts?: {
|
||||
defaultCleared: boolean;
|
||||
defaultCleared?: boolean;
|
||||
};
|
||||
}): Promise<ImportTransactionsResult> {
|
||||
if (typeof accountId !== 'string') {
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
6
upcoming-release-notes/5247.md
Normal file
6
upcoming-release-notes/5247.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [ngoc-minh-do]
|
||||
---
|
||||
|
||||
Fix issue that importTransactions() options (defaultCleared) was not used
|
||||
Reference in New Issue
Block a user