Skip to content

Commit

Permalink
fixes capabilities definitions section in nodetypes which were insert…
Browse files Browse the repository at this point in the history
…ing unbounded as number of occurences instead of UNBOUNDED

Signed-off-by: Felix Burk <felix.burk@googlemail.com>
  • Loading branch information
FlxB2 authored and miwurster committed Jun 12, 2020
1 parent e79a7d6 commit fe37351
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class CapOrReqDefComponent implements OnInit {
for (const entry of apidata.capOrRegDefinitionsList) {
const name = entry.name;
const lowerBound = entry.lowerBound;
const upperBound = entry.upperBound === 'unbounded' ? '∞' : entry.upperBound;
const upperBound = entry.upperBound === 'UNBOUNDED' ? '∞' : entry.upperBound;
const type = this.capOrReqTypeToHref(isNullOrUndefined(entry.capabilityType)
=== false ? entry.capabilityType : entry.requirementType);
const constraint = '<button class="btn btn-xs" style="pointer-events: none;">Constraint...</button>';
Expand Down Expand Up @@ -289,7 +289,7 @@ export class CapOrReqDefComponent implements OnInit {
this.addModal.hide();
this.capOrReqDefToBeAdded.lowerBound = this.lowerBoundSpinner.value;
if (this.upperBoundSpinner.value === '∞') {
this.capOrReqDefToBeAdded.upperBound = 'unbounded';
this.capOrReqDefToBeAdded.upperBound = 'UNBOUNDED';
} else {
this.capOrReqDefToBeAdded.upperBound = this.upperBoundSpinner.value;
}
Expand Down

0 comments on commit fe37351

Please sign in to comment.