From 0ef2b828520f30ef5a296158ba31334e6e23ac56 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 12 Sep 2024 20:33:21 +0200 Subject: [PATCH] Bugfix/fix destructuring in activities filters (#3756) * Provide default value during destructuring * Update changelog --- CHANGELOG.md | 6 ++++++ apps/client/src/app/services/data.service.ts | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1779a268d..4b2072118 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 64376a606..cbdde0265 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;