diff --git a/app/javascript/dashboard/components/widgets/conversation/conversation/LabelSuggestion.vue b/app/javascript/dashboard/components/widgets/conversation/conversation/LabelSuggestion.vue index 7c288b7f3..a1f6aca8b 100644 --- a/app/javascript/dashboard/components/widgets/conversation/conversation/LabelSuggestion.vue +++ b/app/javascript/dashboard/components/widgets/conversation/conversation/LabelSuggestion.vue @@ -9,7 +9,14 @@ :key="label.title" @click="addLabel(label.title)" > - + label.title) - ); + let labelsToAdd = this.selectedLabels; + if (!labelsToAdd.length) { + labelsToAdd = this.preparedLabels.map(label => label.title); } + this.$store.dispatch('conversationLabels/update', { + conversationId: this.conversationId, + labels: labelsToAdd, + }); }, }, };