@konfuzio/document-validation-ui 0.2.2 → 0.2.3

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.2.2",
3
+ "version": "0.2.3",
4
4
  "repository": "https://github.com/konfuzio-ai/document-validation-ui",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -259,7 +259,7 @@ export default {
259
259
  this.labels = this.labelsFilteredForAnnotationCreation(newValue);
260
260
  if (oldValue === null && this.editAnnotation) {
261
261
  this.selectedLabel = this.editAnnotation.label;
262
- } else if (this.labels.length === 1) {
262
+ } else if (this.labels.length > 0) {
263
263
  this.selectedLabel = this.labels[0];
264
264
  }
265
265
  },