Browse Source

Add guard (#2898)

pull/2899/head
Thomas Kaul 1 year ago
committed by GitHub
parent
commit
f2803aecbc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

2
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

@ -144,7 +144,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
assetSubClass: this.assetProfile.assetSubClass ?? null,
comment: this.assetProfile?.comment ?? '',
countries: JSON.stringify(
this.assetProfile?.countries.map(({ code, weight }) => {
this.assetProfile?.countries?.map(({ code, weight }) => {
return { code, weight };
}) ?? []
),

Loading…
Cancel
Save