Save button disabled in update property in composition view 10/130010/2
authorJvD_Ericsson <jeff.van.dam@est.tech>
Fri, 22 Jul 2022 10:41:00 +0000 (11:41 +0100)
committerAndr� Schmid <andre.schmid@est.tech>
Fri, 22 Jul 2022 16:20:05 +0000 (16:20 +0000)
when adding a tosca function

Issue-ID: SDC-4110
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: Ifab34b81bc2546698344db2f0f7c07aab592cbdb

catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts

index 008858d..1419f3a 100644 (file)
@@ -457,8 +457,8 @@ export class PropertyFormViewModel {
             this.$scope.editPropertyModel.property.toscaFunction = toscaGetFunction;
         }
 
-        this.$scope.onGetFunctionValidityChange = (isValid: boolean): void => {
-            if (isValid) {
+        this.$scope.onGetFunctionValidityChange = (isValid): void => {
+            if (isValid.isValid) {
                 this.$scope.editPropertyModel.isGetFunctionValid = true;
                 return;
             }