From 0c54db816bcadb231b007ce56c5c90d7b96d0706 Mon Sep 17 00:00:00 2001 From: vasraz Date: Wed, 1 Feb 2023 19:28:28 +0000 Subject: Validate service input default values against constraints Signed-off-by: Vasyl Razinkov Change-Id: Ifd4e3cc5c8dd93282233e4c6bb77fa763d52f922 Issue-ID: SDC-4366 --- .../src/app/ng2/components/logic/inputs-table/inputs-table.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-ui/src/app') diff --git a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts index ec18767183..c2a872fe9b 100644 --- a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts +++ b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts @@ -180,7 +180,7 @@ export class InputsTableComponent { public updateProperty = (inputProperty: InputFEModel): void => { let modelProperty : PropertyModel = this.createPropertyModel(inputProperty); - if (inputProperty.instanceUniqueId != null && this.componentInstancePropertyMap != null && modelProperty.constraints == null) { + if (inputProperty.instanceUniqueId != null && this.componentInstancePropertyMap != null && modelProperty.constraints == null && this.componentInstancePropertyMap[inputProperty.instanceUniqueId]) { this.componentInstancePropertyMap[inputProperty.instanceUniqueId].forEach(tempProperty => { modelProperty.constraints = tempProperty.constraints; }); -- cgit 1.2.3-korg