Feature/improve handling of activities without account (#3060)
* Improve handling of activities without account * Update changelog
This commit is contained in:
parent
d3679d41b3
commit
3615e2f057
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Improved the handling of activities without account
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed the query to filter activities of excluded accounts
|
- Fixed the query to filter activities of excluded accounts
|
||||||
|
@ -749,7 +749,9 @@ export class PortfolioService {
|
|||||||
} = position;
|
} = position;
|
||||||
|
|
||||||
const accounts: PortfolioPositionDetail['accounts'] = uniqBy(
|
const accounts: PortfolioPositionDetail['accounts'] = uniqBy(
|
||||||
orders,
|
orders.filter(({ Account }) => {
|
||||||
|
return Account;
|
||||||
|
}),
|
||||||
'Account.id'
|
'Account.id'
|
||||||
).map(({ Account }) => {
|
).map(({ Account }) => {
|
||||||
return Account;
|
return Account;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user