mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
Fix parse errors with OFX data with no transactions (#2342)
* Fix parse errors with OFX data with no transactions - Return an empty array instead of an array of undefined
This commit is contained in:
@@ -87,7 +87,7 @@ function getInvStmtTrn(ofx) {
|
||||
}
|
||||
|
||||
function getAsArray(value) {
|
||||
return Array.isArray(value) ? value : [value];
|
||||
return Array.isArray(value) ? value : value === undefined ? [] : [value];
|
||||
}
|
||||
|
||||
function mapOfxTransaction(stmtTrn): OFXTransaction {
|
||||
|
||||
6
upcoming-release-notes/2342.md
Normal file
6
upcoming-release-notes/2342.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [twk3]
|
||||
---
|
||||
|
||||
Fix parse errors with OFX data with no transactions
|
||||
Reference in New Issue
Block a user