Fix instance count not being added correctly to node template 46/127846/2
authorJvD_Ericsson <jeff.van.dam@est.tech>
Wed, 16 Mar 2022 11:36:43 +0000 (11:36 +0000)
committerMichael Morris <michael.morris@est.tech>
Mon, 21 Mar 2022 10:18:02 +0000 (10:18 +0000)
Issue-ID: SDC-3919
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I161561f13d6a28c8c9fbf524a351ed603ba274c8

catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/properties-tab/properties-tab.component.ts

index b6999e6..dc16a12 100644 (file)
@@ -202,8 +202,7 @@ export class PropertiesTabComponent implements OnInit {
 
             _.forEach(this.inputs, (input: InputModel) => {
                 if(input.type === "integer"){
-                    this.selectInputs.push(new DropdownValue('{' + ToscaGetFunctionType.GET_INPUT.toLowerCase + ":" + input.name + '}', input.name));
-                    console.log('{' + ToscaGetFunctionType.GET_INPUT.toLowerCase + ":" + input.name + '}', input.name);
+                    this.selectInputs.push(new DropdownValue('{' + ToscaGetFunctionType.GET_INPUT.toLowerCase() + ":" + input.name + '}', input.name));
                 }
             });
 
@@ -298,7 +297,6 @@ export class PropertiesTabComponent implements OnInit {
 
     private saveOccurrences = () => {
         if(this.component instanceof FullComponentInstance && this.isOccurrencesFormValid(this.component)) {
-            console.log("this.component.instanceCount: " + this.component.instanceCount);
             this.updateComponentInstance(this.component);
         }
     }