From 8b106953531f99502d8dfd8ed245f55afab47fc5 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 29 Jan 2024 19:53:47 +0100 Subject: [PATCH] Feature/only show used tags in tag selector of assistant (#2943) * Only show used tags in tag selector * Update changelog --- CHANGELOG.md | 4 ++++ libs/ui/src/lib/assistant/assistant.component.ts | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0831e1bf..e49710cbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Changed + +- Improved the tag selector to only show used tags in the assistant (experimental) + ### Fixed - Fixed the export in the lazy-loaded activities table on the portfolio activities page (experimental) diff --git a/libs/ui/src/lib/assistant/assistant.component.ts b/libs/ui/src/lib/assistant/assistant.component.ts index 19cbaefcb..65c9e37fc 100644 --- a/libs/ui/src/lib/assistant/assistant.component.ts +++ b/libs/ui/src/lib/assistant/assistant.component.ts @@ -136,10 +136,8 @@ export class AssistantComponent implements OnChanges, OnDestroy, OnInit { ) {} public ngOnInit() { - const { tags } = this.dataService.fetchInfo(); - this.accounts = this.user?.accounts; - this.tags = tags.map(({ id, name }) => { + this.tags = this.user?.tags.map(({ id, name }) => { return { id, name: translate(name)