From c3d496eb36910d348ea6719e1df74fbc91326ebb Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Fri, 22 Jul 2022 11:41:00 +0100 Subject: Save button disabled in update property in composition view when adding a tosca function Issue-ID: SDC-4110 Signed-off-by: JvD_Ericsson Change-Id: Ifab34b81bc2546698344db2f0f7c07aab592cbdb --- .../component-property-form/property-form-view-model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts index 008858d43d..1419f3a217 100644 --- a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts +++ b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts @@ -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; } -- cgit 1.2.3-korg