Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/fix destructuring in activities filters (#3756)

Thomas Kaul0ef2b828520f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1779a268da..4b20721186 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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 an issue in the activities filters that occured during destructuring
+
## 2.107.0 - 2024-09-10
### Added
diff --git a/apps/client/src/app/services/data.service.ts b/apps/client/src/app/services/data.service.ts
index 64376a6060..cbdde0265e 100644
--- a/apps/client/src/app/services/data.service.ts
+++ b/apps/client/src/app/services/data.service.ts
@@ -72,11 +72,11 @@ export class DataService {
ACCOUNT: filtersByAccount,
ASSET_CLASS: filtersByAssetClass,
ASSET_SUB_CLASS: filtersByAssetSubClass,
- DATA_SOURCE: [filterByDataSource],
+ DATA_SOURCE: [filterByDataSource] = [],
HOLDING_TYPE: filtersByHoldingType,
PRESET_ID: filtersByPresetId,
SEARCH_QUERY: filtersBySearchQuery,
- SYMBOL: [filterBySymbol],
+ SYMBOL: [filterBySymbol] = [],
TAG: filtersByTag
} = groupBy(filters, (filter) => {
return filter.type;