Skip to content
Snippets Groups Projects
Commit 009e1d05 authored by ml bonhomme's avatar ml bonhomme :bee:
Browse files

Allow manually adding a class that's already been added by a worker

parent 3c049c8d
No related branches found
No related tags found
1 merge request!1294Allow manually adding a class that's already been added by a worker
......@@ -153,7 +153,7 @@ export default {
return this.selectedNewClassification &&
this.element &&
this.element.classifications &&
this.element.classifications.find(c => c.ml_class.id === this.selectedNewClassification)
this.element.classifications.find(c => (c.ml_class.id === this.selectedNewClassification && !c.worker_version))
},
canCreateClassification () {
return this.element && this.selectedNewClassification && !this.manualClassificationExists && !this.isSavingNewClassification
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment