From e61d26cb2a74813b526e10864af4d73f04df2650 Mon Sep 17 00:00:00 2001 From: vasraz Date: Wed, 1 Feb 2023 17:56:35 +0000 Subject: Fix 'in_range constraints missing from TOSCA template'-bug Signed-off-by: Vasyl Razinkov Change-Id: Icec2183849a8852621ec98f3ca1d94ac7c4dae31 Issue-ID: SDC-4357 --- .../pages/properties-assignment/constraints/constraints.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'catalog-ui/src/app/ng2/pages/properties-assignment') diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts b/catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts index 1e0eb4f2aa..525bf884f0 100644 --- a/catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts +++ b/catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts @@ -52,7 +52,7 @@ export class ConstraintsComponent implements OnInit { } } this.constraints = new Array(); - if(changes.propertyConstraints.currentValue) { + if (changes.propertyConstraints && changes.propertyConstraints.currentValue) { changes.propertyConstraints.currentValue.forEach((constraint: any) => { this.constraints.push(this.getConstraintFromPropertyBEModel(constraint)); }); @@ -341,4 +341,4 @@ export const ConstraintTypesMapping = { export interface Constraint { type:ConstraintTypes, value:any -} \ No newline at end of file +} -- cgit 1.2.3-korg