mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
bugfix to "can't delete task"
This commit is contained in:
parent
07a3a3c3b6
commit
de1eca084e
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ character = require './character'
|
|||
|
||||
module.exports.view = (view) ->
|
||||
view.fn 'taskClasses', (task) ->
|
||||
return unless task
|
||||
{type, completed, value, repeat} = task
|
||||
|
||||
classes = type
|
||||
|
|
@ -67,7 +68,7 @@ module.exports.app = (appExports, model) ->
|
|||
|
||||
appExports.del = (e, el) ->
|
||||
# Derby extends model.at to support creation from DOM nodes
|
||||
task = model.at(e.target)
|
||||
task = e.at()
|
||||
id = task.get('id')
|
||||
|
||||
history = task.get('history')
|
||||
|
|
|
|||
Loading…
Reference in a new issue