From 1b01386a9513ad71f07aab79a29ee1f877db8df6 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 31 Jan 2017 09:41:57 +0000 Subject: [PATCH] Fixed bug where 2 un-selected issues would stay on selected tab --- app/assets/javascripts/boards/stores/modal_store.js.es6 | 5 +++-- 1 file 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; + }); } }