Check before destroy, if task is already stored.
This commit is contained in:
parent
94a9b5e004
commit
f326fb12f6
1 changed files with 3 additions and 0 deletions
|
@ -356,6 +356,9 @@ class _taskManagerSingleton extends App.Controller
|
||||||
|
|
||||||
# destory task in backend
|
# destory task in backend
|
||||||
delete @tasksToUpdate[ task.key ]
|
delete @tasksToUpdate[ task.key ]
|
||||||
|
|
||||||
|
# if task isnt already stored on backend
|
||||||
|
return if !task.id
|
||||||
App.Taskbar.destroy(task.id)
|
App.Taskbar.destroy(task.id)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue