Commit 0939643f authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Remove removeAssignee logic from issue logic

parent 3a51227b
......@@ -60,9 +60,7 @@ class ListIssue {
}
removeAssignee(removeAssignee) {
if (removeAssignee) {
this.assignees = this.assignees.filter(assignee => assignee.id !== removeAssignee.id);
}
boardsStore.removeIssueAssignee(this, removeAssignee);
}
removeAllAssignees() {
......
......@@ -682,6 +682,11 @@ const boardsStore = {
...this.multiSelect.list.slice(index + 1),
];
},
removeIssueAssignee(issue, removeAssignee) {
if (removeAssignee) {
issue.assignees = issue.assignees.filter(assignee => assignee.id !== removeAssignee.id);
}
},
clearMultiSelect() {
this.multiSelect.list = [];
......
---
title: Remove removeAssignee logic from issue model
merge_request: 32248
author: nuwe1
type: other
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