Bugfix/fix missing platform name in allocations by platform (#1918)
* Fix missing platform name * Update changelog
This commit is contained in:
parent
9002c20165
commit
c19984c3d0
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed the missing platform name in the allocations by platform chart on the allocations page
|
||||
|
||||
## 1.264.0 - 2023-05-01
|
||||
|
||||
### Added
|
||||
|
@ -1727,6 +1727,7 @@ export class PortfolioService {
|
||||
currentAccounts = await this.accountService.getAccounts(userId);
|
||||
} else if (filters.length === 1 && filters[0].type === 'ACCOUNT') {
|
||||
currentAccounts = await this.accountService.accounts({
|
||||
include: { Platform: true },
|
||||
where: { id: filters[0].id }
|
||||
});
|
||||
} else {
|
||||
@ -1737,6 +1738,7 @@ export class PortfolioService {
|
||||
);
|
||||
|
||||
currentAccounts = await this.accountService.accounts({
|
||||
include: { Platform: true },
|
||||
where: { id: { in: accountIds } }
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user