Browse Source

Bugfix/exclude emtpy items in activities filter (#999)

* Exclude empty items

* Update changelog
pull/994/head^2
Thomas Kaul 3 years ago
committed by GitHub
parent
commit
74fe90906a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      CHANGELOG.md
  2. 12
      libs/ui/src/lib/activities-table/activities-table.component.ts

4
CHANGELOG.md

@ -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

12
libs/ui/src/lib/activities-table/activities-table.component.ts

@ -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,
type: 'ACCOUNT'
};
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…
Cancel
Save