From: MichaelMorris Date: Fri, 24 Jun 2022 10:30:03 +0000 (+0100) Subject: Make instance count optional X-Git-Tag: 1.11.5~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=542a682564423d706fbbf27293c66c66eddf5f6f;p=sdc.git Make instance count optional Signed-off-by: MichaelMorris Issue-ID: SDC-4065 Change-Id: I8f80f813ef1d1d6ab01b8730bc0075ddd66235f4 --- diff --git a/catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/properties-tab/properties-tab.component.ts b/catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/properties-tab/properties-tab.component.ts index 6bb697be2c..04bed37e37 100644 --- a/catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/properties-tab/properties-tab.component.ts +++ b/catalog-ui/src/app/ng2/pages/composition/panel/panel-tabs/properties-tab/properties-tab.component.ts @@ -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 {