@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.cjs.js CHANGED
@@ -250,7 +250,7 @@ var validate = function (configuration, shapes, metadata, strings) {
250
250
  case OperatorEnum.Eq:
251
251
  if ((metadata.rois || []).filter(function (m) { return m.role === roi.role; }).length !== roi.multiplicity.threshold) {
252
252
  errors.push(formatString(strings.shapesOfRoleShouldBeEqualToThreshold, {
253
- role: String(roi.role),
253
+ role: String(roi.label),
254
254
  threshold: roi.multiplicity.threshold,
255
255
  }));
256
256
  }
@@ -258,7 +258,7 @@ var validate = function (configuration, shapes, metadata, strings) {
258
258
  case OperatorEnum.Lt:
259
259
  if ((metadata.rois || []).filter(function (m) { return m.role === roi.role; }).length >= roi.multiplicity.threshold) {
260
260
  errors.push(formatString(strings.shapesOfRoleShouldBeLessThanThreshold, {
261
- role: String(roi.role),
261
+ role: String(roi.label),
262
262
  threshold: roi.multiplicity.threshold,
263
263
  }));
264
264
  }