diff options
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/labels_select_root.vue')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/labels_select_root.vue | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/labels_select_root.vue b/app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/labels_select_root.vue index 86af7277108..97a65c13933 100644 --- a/app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/labels_select_root.vue +++ b/app/assets/javascripts/vue_shared/components/sidebar/labels_select_widget/labels_select_root.vue @@ -207,7 +207,7 @@ export default { return { iid: currentIid, groupPath: this.fullPath, - addLabelIds: labelIds, + addLabelIds: labelIds.map((id) => getIdFromGraphQLId(id)), removeLabelIds: this.issuableLabelIds .filter((id) => !labelIds.includes(id)) .map((id) => getIdFromGraphQLId(id)), @@ -232,8 +232,8 @@ export default { } this.$emit('updateSelectedLabels', { - id: data[mutationName]?.[this.issuableType].id, - labels: data[mutationName]?.[this.issuableType].labels?.nodes, + id: data[mutationName]?.[this.issuableType]?.id, + labels: data[mutationName]?.[this.issuableType]?.labels?.nodes, }); }) .catch((error) => @@ -268,7 +268,7 @@ export default { case IssuableType.Epic: return { iid: this.iid, - removeLabelIds: [labelId], + removeLabelIds: [getIdFromGraphQLId(labelId)], groupPath: this.fullPath, }; default: @@ -341,7 +341,6 @@ export default { :labels-create-title="labelsCreateTitle" :selected-labels="issuableLabels" :variant="variant" - :issuable-type="issuableType" :is-visible="edit" :full-path="fullPath" :workspace-type="workspaceType" @@ -364,7 +363,6 @@ export default { :labels-create-title="labelsCreateTitle" :selected-labels="issuableLabels" :variant="variant" - :issuable-type="issuableType" :full-path="fullPath" :workspace-type="workspaceType" :attr-workspace-path="attrWorkspacePath" |