summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-31 09:41:57 +0000
committerFatih Acet <acetfatih@gmail.com>2017-02-03 17:02:44 +0300
commit1b01386a9513ad71f07aab79a29ee1f877db8df6 (patch)
tree94f98107c4a4c5f884375c7597a16d0df8cf80f1 /app
parentd5c9d7e7530589e21f13816f3dba5de91f108d8b (diff)
downloadgitlab-ce-1b01386a9513ad71f07aab79a29ee1f877db8df6.tar.gz
Fixed bug where 2 un-selected issues would stay on selected tab
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/boards/stores/modal_store.js.es65
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;
+ });
}
}