Add guard (#2898)
This commit is contained in:
parent
5ba5b86d5f
commit
f2803aecbc
@ -144,7 +144,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
|
|||||||
assetSubClass: this.assetProfile.assetSubClass ?? null,
|
assetSubClass: this.assetProfile.assetSubClass ?? null,
|
||||||
comment: this.assetProfile?.comment ?? '',
|
comment: this.assetProfile?.comment ?? '',
|
||||||
countries: JSON.stringify(
|
countries: JSON.stringify(
|
||||||
this.assetProfile?.countries.map(({ code, weight }) => {
|
this.assetProfile?.countries?.map(({ code, weight }) => {
|
||||||
return { code, weight };
|
return { code, weight };
|
||||||
}) ?? []
|
}) ?? []
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user