From 2254459cc118e6eddf34e0d241cb786d45a854e0 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 2 Oct 2024 09:36:54 +0200 Subject: [PATCH] Fix frontend tag handling --- .../asset-profile-dialog/asset-profile-dialog.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts index cb8a1de02..d79ba44f3 100644 --- a/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts +++ b/apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts @@ -89,7 +89,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit { [name: string]: { name: string; value: number }; }; - public HoldingTags: { id: string; name: string }[]; + public HoldingTags: { id: string; name: string; userId: string }[]; private static readonly HISTORICAL_DATA_TEMPLATE = `date;marketPrice\n${format( new Date(), @@ -123,8 +123,8 @@ export class AssetProfileDialog implements OnDestroy, OnInit { .fetchTags() .pipe(takeUntil(this.unsubscribeSubject)) .subscribe((tags) => { - this.HoldingTags = tags.map(({ id, name }) => { - return { id, name }; + this.HoldingTags = tags.map(({ id, name, userId }) => { + return { id, name, userId }; }); this.dataService.updateInfo();