diff options
author | vasraz <vasyl.razinkov@est.tech> | 2023-02-01 17:56:35 +0000 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-02-02 12:05:26 +0000 |
commit | e61d26cb2a74813b526e10864af4d73f04df2650 (patch) | |
tree | 972a74ffc58c0b24da5af586bbbcec1f66150d97 /catalog-ui/src/app/ng2/pages | |
parent | 5da0b3c1454ac557e0b01eb678abaf882fb08243 (diff) |
Fix 'in_range constraints missing from TOSCA template'-bug
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Icec2183849a8852621ec98f3ca1d94ac7c4dae31
Issue-ID: SDC-4357
Diffstat (limited to 'catalog-ui/src/app/ng2/pages')
-rw-r--r-- | catalog-ui/src/app/ng2/pages/properties-assignment/constraints/constraints.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 +} |