From 009e1d05e96ed6bdb6f32d984f6a7ce988afd007 Mon Sep 17 00:00:00 2001 From: mlbonhomme <bonhomme@teklia.com> Date: Thu, 7 Jul 2022 16:56:41 +0200 Subject: [PATCH] Allow manually adding a class that's already been added by a worker --- vue/Element/DetailsPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue/Element/DetailsPanel.vue b/vue/Element/DetailsPanel.vue index 09270b261..c54686028 100644 --- a/vue/Element/DetailsPanel.vue +++ b/vue/Element/DetailsPanel.vue @@ -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 -- GitLab