fix(ui): removed tasks not being properly filtered

This commit is contained in:
Guillaume Chau
2018-04-27 19:31:07 +02:00
parent b5c5e71121
commit 093f76226b

View File

@@ -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 => {