Commit 86a6d4d8 authored by Phil Hughes's avatar Phil Hughes

Fixed bug when dragging to done list

parent 19afb1e7
...@@ -99,8 +99,8 @@ ...@@ -99,8 +99,8 @@
listFrom.update(); listFrom.update();
}, },
moveCardToList (listFromId, listToId, issueId) { moveCardToList (listFromId, listToId, issueId) {
const listFrom = this.findList('id', listFromId), const listFrom = this.findList('id', listFromId, false),
listTo = this.findList('id', listToId), listTo = this.findList('id', listToId, false),
issueTo = listTo.findIssue(issueId), issueTo = listTo.findIssue(issueId),
issue = listFrom.findIssue(issueId), issue = listFrom.findIssue(issueId),
issueLists = issue.getLists(), issueLists = issue.getLists(),
...@@ -125,7 +125,9 @@ ...@@ -125,7 +125,9 @@
}, },
findList (key, val, type = 'label') { findList (key, val, type = 'label') {
return this.state.lists.filter((list) => { return this.state.lists.filter((list) => {
return list[key] === val && list['type'] === type; const byType = type ? list['type'] === type : true;
return list[key] === val && byType;
})[0]; })[0];
}, },
updateFiltersUrl () { updateFiltersUrl () {
......
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