Browse Source

Fix frontend tag handling

pull/5027/head
Dan 9 months ago
parent
commit
2254459cc1
  1. 6
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

6
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();

Loading…
Cancel
Save