Commit 0ec5edd5 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Allow adding of duplicate label names in boards

parent 16afcb55
...@@ -55,12 +55,12 @@ class ListIssue { ...@@ -55,12 +55,12 @@ class ListIssue {
} }
findLabel(findLabel) { findLabel(findLabel) {
return this.labels.filter(label => label.title === findLabel.title)[0]; return this.labels.find(label => label.id === findLabel.id);
} }
removeLabel(removeLabel) { removeLabel(removeLabel) {
if (removeLabel) { if (removeLabel) {
this.labels = this.labels.filter(label => removeLabel.title !== label.title); this.labels = this.labels.filter(label => removeLabel.id !== label.id);
} }
} }
...@@ -75,7 +75,7 @@ class ListIssue { ...@@ -75,7 +75,7 @@ class ListIssue {
} }
findAssignee(findAssignee) { findAssignee(findAssignee) {
return this.assignees.filter(assignee => assignee.id === findAssignee.id)[0]; return this.assignees.find(assignee => assignee.id === findAssignee.id);
} }
removeAssignee(removeAssignee) { removeAssignee(removeAssignee) {
......
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