Skip to content

Commit

Permalink
fix(ui): removed tasks not being properly filtered
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Apr 27, 2018
1 parent b5c5e71 commit 093f762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/cli-ui/src/graphql-api/connectors/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ function list (context) {
})

// Process removed tasks
const removedTasks = currentTasks.filter(
task => task.index === -1
const removedTasks = list.filter(
t => currentTasks.findIndex(c => c.id === t.id) === -1
)
// Remove badges
removedTasks.forEach(task => {
Expand Down

0 comments on commit 093f762

Please sign in to comment.