Commit 248346c7 authored by NataliaTepluhina's avatar NataliaTepluhina Committed by Florie Guibert

Passed correct variant to labels

parent 5fc7fb78
...@@ -91,9 +91,7 @@ export default { ...@@ -91,9 +91,7 @@ export default {
try { try {
const addLabelIds = payload.filter((label) => label.set).map((label) => label.id); const addLabelIds = payload.filter((label) => label.set).map((label) => label.id);
const removeLabelIds = this.selectedLabels const removeLabelIds = payload.filter((label) => !label.set).map((label) => label.id);
.filter((label) => !payload.find((selected) => selected.id === label.id))
.map((label) => label.id);
const input = { const input = {
addLabelIds, addLabelIds,
...@@ -164,7 +162,7 @@ export default { ...@@ -164,7 +162,7 @@ export default {
:labels-list-title="__('Select label')" :labels-list-title="__('Select label')"
:dropdown-button-text="__('Choose labels')" :dropdown-button-text="__('Choose labels')"
:is-editing="edit" :is-editing="edit"
variant="embedded" variant="sidebar"
class="gl-display-block labels gl-w-full" class="gl-display-block labels gl-w-full"
@updateSelectedLabels="setLabels" @updateSelectedLabels="setLabels"
> >
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment