Make instance count optional 76/129676/2
authorMichaelMorris <michael.morris@est.tech>
Fri, 24 Jun 2022 10:30:03 +0000 (11:30 +0100)
committerAndr� Schmid <andre.schmid@est.tech>
Fri, 24 Jun 2022 14:24:17 +0000 (14:24 +0000)
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4065
Change-Id: I8f80f813ef1d1d6ab01b8730bc0075ddd66235f4

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

index 6bb697b..04bed37 100644 (file)
@@ -286,8 +286,7 @@ export class PropertiesTabComponent implements OnInit {
         if(
             (component.minOccurrences === null && component.maxOccurrences === null && !component.instanceCount) ||
             (component.minOccurrences && parseInt(component.minOccurrences) >= 0 && component.maxOccurrences &&
-            (parseInt(component.maxOccurrences) >= parseInt(component.minOccurrences) || component.maxOccurrences === "UNBOUNDED") &&
-            component.instanceCount)
+            (parseInt(component.maxOccurrences) >= parseInt(component.minOccurrences) || component.maxOccurrences === "UNBOUNDED"))
         ) {
             return true;
         } else {