From e9fc51dfb98e00129ee6c2a684810cd4fb08b3b8 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 29 Jan 2024 19:32:39 +0100 Subject: [PATCH] Only show used tags in tag selector --- libs/ui/src/lib/assistant/assistant.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)