mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
Close #7493
This commit is contained in:
parent
01a7880bc9
commit
46be1553f0
1 changed files with 1 additions and 4 deletions
|
|
@ -193,10 +193,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
|||
// Don't allow creation of an empty checklist item
|
||||
// TODO Provide UI feedback that this item is still blank
|
||||
} else if ($index == task.checklist.length - 1) {
|
||||
Tasks.addChecklistItem(task._id, task.checklist[$index])
|
||||
.then(function (response) {
|
||||
task.checklist[$index] = response.data.data.checklist[$index];
|
||||
});
|
||||
$scope.saveTask(task, true);
|
||||
task.checklist.push({completed:false, text:''});
|
||||
focusChecklist(task, task.checklist.length - 1);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue