@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.18-dev.1",
3
+ "version": "0.1.18-dev.2",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -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 (this.selectedLabel.annotations.length > 0) {
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
  );