X-Git-Url: https://gerrit.onap.org/r/gitweb?p=clamp.git;a=blobdiff_plain;f=ui-react%2Fsrc%2Fcomponents%2Fdialogs%2FTosca%2FViewLoopTemplatesModal.js;h=eb6e70f3d68cdd00f882c5299450a2770cf29f55;hp=10473944f65f7587c261ffd80c0320af8c805072;hb=db90efcaf3cb809af254f8029b480baf062c1e1f;hpb=e760f72203c95b684d88cc19216c1cfbdcdbc089 diff --git a/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.js b/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.js index 10473944..eb6e70f3 100644 --- a/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.js +++ b/ui-react/src/components/dialogs/Tosca/ViewLoopTemplatesModal.js @@ -99,7 +99,13 @@ export default class ViewLoopTemplatesModal extends React.Component { getAllLoopTemplates() { TemplateService.getAllLoopTemplates().then(templatesData => { - this.setState({ loopTemplatesData: templatesData }) + // replace -1 in maximumInstancesAllowed with more meaningful 'No Limit' + for (let item in templatesData) { + if (templatesData[item].maximumInstancesAllowed === -1) { + templatesData[item].maximumInstancesAllowed = 'No Limit'; + } + } + this.setState({ loopTemplatesData: templatesData }) }); }