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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
11 additions and
5 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/activities-table/activities-table.component.ts
|
@ -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 `chart.js` from version `3.7.0` to `3.8.0` |
|
|
- Upgraded `envalid` from version `7.2.1` to `7.3.1` |
|
|
- 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 |
|
|
## 1.156.0 - 05.06.2022 |
|
|
|
|
|
|
|
|
### Added |
|
|
### Added |
|
|
|
@ -192,11 +192,13 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy { |
|
|
activity: OrderWithAccount, |
|
|
activity: OrderWithAccount, |
|
|
fieldValueMap: { [id: string]: Filter } = {} |
|
|
fieldValueMap: { [id: string]: Filter } = {} |
|
|
): Filter[] { |
|
|
): Filter[] { |
|
|
fieldValueMap[activity.Account?.id] = { |
|
|
if (activity.Account?.id) { |
|
|
id: activity.Account?.id, |
|
|
fieldValueMap[activity.Account.id] = { |
|
|
label: activity.Account?.name, |
|
|
id: activity.Account.id, |
|
|
type: 'ACCOUNT' |
|
|
label: activity.Account.name, |
|
|
}; |
|
|
type: 'ACCOUNT' |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
fieldValueMap[activity.SymbolProfile.currency] = { |
|
|
fieldValueMap[activity.SymbolProfile.currency] = { |
|
|
id: activity.SymbolProfile.currency, |
|
|
id: activity.SymbolProfile.currency, |
|
|