Issue-ID: CLAMP-912
Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
Change-Id: I3d7732ae741bd3ab0766fc022e8920af2a08e9af
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 })
});
}