Fix formatting error for operation input of complex type
[sdc.git] / catalog-ui / src / app / ng2 / pages / composition / interface-operatons / operation-creator / interface-operation-handler.component.ts
index 4ceaa78..812490c 100644 (file)
@@ -303,6 +303,9 @@ export class InterfaceOperationHandlerComponent {
         const inputOperationParameter = this.inputs.find(value => value.name == changedInput.name);
         inputOperationParameter.toscaFunction = null;
         inputOperationParameter.value = changedInput.value;
+        if (inputOperationParameter.subPropertyToscaFunctions) {
+            inputOperationParameter.subPropertyToscaFunctions = undefined;
+        }
         if (changedInput.isToscaFunction()) {
             inputOperationParameter.toscaFunction = changedInput.toscaFunction;
             inputOperationParameter.value = changedInput.toscaFunction.buildValueString();