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

* Exclude empty items

* Update changelog
pull/994/head^2
Thomas Kaul 2 years ago committed by GitHub
parent 4cb9a3b142
commit 74fe90906a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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