Commit 406ac9ac authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Remove findAssignee logic from issue model

parent 0f45ad73
......@@ -54,7 +54,7 @@ class ListIssue {
}
findAssignee(findAssignee) {
return this.assignees.find(assignee => assignee.id === findAssignee.id);
return boardsStore.findIssueAssignee(this, findAssignee);
}
removeAssignee(removeAssignee) {
......
......@@ -761,6 +761,10 @@ const boardsStore = {
}
},
findIssueAssignee(issue, findAssignee) {
return issue.assignees.find(assignee => assignee.id === findAssignee.id);
},
clearMultiSelect() {
this.multiSelect.list = [];
},
......
---
title: Remove findAssignee logic from issue model
merge_request: 32238
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