Bugfix/exclude emtpy items in activities filter (#999)
* Exclude empty items * Update changelog
This commit is contained in:
parent
4cb9a3b142
commit
74fe90906a
@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Upgraded `chart.js` from version `3.7.0` to `3.8.0`
|
||||
- Upgraded `envalid` from version `7.2.1` to `7.3.1`
|
||||
|
||||
### Fixed
|
||||
|
||||
- Excluded empty items in the activities filter
|
||||
|
||||
## 1.156.0 - 05.06.2022
|
||||
|
||||
### Added
|
||||
|
@ -192,11 +192,13 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy {
|
||||
activity: OrderWithAccount,
|
||||
fieldValueMap: { [id: string]: Filter } = {}
|
||||
): Filter[] {
|
||||
fieldValueMap[activity.Account?.id] = {
|
||||
id: activity.Account?.id,
|
||||
label: activity.Account?.name,
|
||||
if (activity.Account?.id) {
|
||||
fieldValueMap[activity.Account.id] = {
|
||||
id: activity.Account.id,
|
||||
label: activity.Account.name,
|
||||
type: 'ACCOUNT'
|
||||
};
|
||||
}
|
||||
|
||||
fieldValueMap[activity.SymbolProfile.currency] = {
|
||||
id: activity.SymbolProfile.currency,
|
||||
|
Loading…
x
Reference in New Issue
Block a user