@abidibo/react-cam-roi 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -248,7 +248,7 @@ var validate = function (configuration, shapes, metadata, strings) {
248
248
  case OperatorEnum.Eq:
249
249
  if ((metadata.rois || []).filter(function (m) { return m.role === roi.role; }).length !== roi.multiplicity.threshold) {
250
250
  errors.push(formatString(strings.shapesOfRoleShouldBeEqualToThreshold, {
251
- role: String(roi.role),
251
+ role: String(roi.label),
252
252
  threshold: roi.multiplicity.threshold,
253
253
  }));
254
254
  }
@@ -256,7 +256,7 @@ var validate = function (configuration, shapes, metadata, strings) {
256
256
  case OperatorEnum.Lt:
257
257
  if ((metadata.rois || []).filter(function (m) { return m.role === roi.role; }).length >= roi.multiplicity.threshold) {
258
258
  errors.push(formatString(strings.shapesOfRoleShouldBeLessThanThreshold, {
259
- role: String(roi.role),
259
+ role: String(roi.label),
260
260
  threshold: roi.multiplicity.threshold,
261
261
  }));
262
262
  }