Commit a376ab7b authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'Remove-findissue-logic-from-list-model' into 'master'

Remove findIssue logic from list model

See merge request gitlab-org/gitlab!32241
parents 8ae7e85b 4ed4d712
...@@ -176,7 +176,7 @@ class List { ...@@ -176,7 +176,7 @@ class List {
} }
findIssue(id) { findIssue(id) {
return this.issues.find(issue => issue.id === id); return boardsStore.findListIssue(this, id);
} }
removeMultipleIssues(removeIssues) { removeMultipleIssues(removeIssues) {
......
...@@ -177,6 +177,10 @@ const boardsStore = { ...@@ -177,6 +177,10 @@ const boardsStore = {
} }
} }
}, },
findListIssue(list, id) {
return list.issues.find(issue => issue.id === id);
},
welcomeIsHidden() { welcomeIsHidden() {
return parseBoolean(Cookies.get('issue_board_welcome_hidden')); return parseBoolean(Cookies.get('issue_board_welcome_hidden'));
}, },
......
---
title: Remove findIssue logic from list model
merge_request: 32241
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