Make instance count optional
[sdc.git] / 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 {