Commit d4860233 authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Remove addAssignees logic from issues model

parent ee8c4dbc
...@@ -50,9 +50,7 @@ class ListIssue { ...@@ -50,9 +50,7 @@ class ListIssue {
} }
addAssignee(assignee) { addAssignee(assignee) {
if (!this.findAssignee(assignee)) { boardsStore.addIssueAssignee(this, assignee);
this.assignees.push(new ListAssignee(assignee));
}
} }
findAssignee(findAssignee) { findAssignee(findAssignee) {
......
...@@ -616,6 +616,12 @@ const boardsStore = { ...@@ -616,6 +616,12 @@ const boardsStore = {
); );
}, },
addIssueAssignee(issue, assignee) {
if (!issue.findAssignee(assignee)) {
issue.assignees.push(new ListAssignee(assignee));
}
},
bulkUpdate(issueIds, extraData = {}) { bulkUpdate(issueIds, extraData = {}) {
const data = { const data = {
update: Object.assign(extraData, { update: Object.assign(extraData, {
......
---
title: Remove addAssignee logic from issue model
merge_request: 32231
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