@konfuzio/document-validation-ui 0.1.18-dev.1 → 0.1.18-dev.2
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/package.json
CHANGED
|
@@ -251,7 +251,10 @@ export default {
|
|
|
251
251
|
// check if the selected label already has a negative annotation
|
|
252
252
|
let negativeAnnotationId;
|
|
253
253
|
|
|
254
|
-
if (
|
|
254
|
+
if (
|
|
255
|
+
this.selectedLabel.annotations &&
|
|
256
|
+
this.selectedLabel.annotations.length > 0
|
|
257
|
+
) {
|
|
255
258
|
const negativeAnnotation = this.selectedLabel.annotations.find(
|
|
256
259
|
(annotation) => this.isNegative(annotation)
|
|
257
260
|
);
|