Fixed bug where 2 un-selected issues would stay on selected tab

This commit is contained in:
Phil Hughes 2017-01-31 09:41:57 +00:00 committed by Fatih Acet
parent d5c9d7e753
commit 1b01386a95

View file

@ -65,8 +65,9 @@
removeSelectedIssue(issue, forcePurge = false) { removeSelectedIssue(issue, forcePurge = false) {
if (this.store.activeTab === 'all' || forcePurge) { if (this.store.activeTab === 'all' || forcePurge) {
const index = this.selectedIssueIndex(issue); this.store.selectedIssues = this.store.selectedIssues.filter((fIssue) => {
this.store.selectedIssues.splice(index, 1); return fIssue.id !== issue.id;
});
} }
} }