mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
fix(tags): Fix tag removal functionality (#7553)
Tag removal functionality was broken. Turns out the issue was simply that we weren't removing the tag from the local `task` object, so the tag was removed, but readded upon sync/pressing save. Closes #7412
This commit is contained in:
parent
b33505141b
commit
0b122f3b43
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
|||
task.tags.push(tagId);
|
||||
} else {
|
||||
Tasks.removeTagFromTask(task._id, tagId);
|
||||
task.tags.splice(tagIndex, 0);
|
||||
task.tags.splice(tagIndex, 1);
|
||||
}
|
||||
}
|
||||
}]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue