diff options
-rw-r--r-- | app/assets/javascripts/boards/stores/modal_store.js.es6 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/boards/stores/modal_store.js.es6 b/app/assets/javascripts/boards/stores/modal_store.js.es6 index 391765c4978..e2234290657 100644 --- a/app/assets/javascripts/boards/stores/modal_store.js.es6 +++ b/app/assets/javascripts/boards/stores/modal_store.js.es6 @@ -65,8 +65,9 @@ removeSelectedIssue(issue, forcePurge = false) { if (this.store.activeTab === 'all' || forcePurge) { - const index = this.selectedIssueIndex(issue); - this.store.selectedIssues.splice(index, 1); + this.store.selectedIssues = this.store.selectedIssues.filter((fIssue) => { + return fIssue.id !== issue.id; + }); } } |