mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01: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:
committed by
Sabe Jones
parent
b33505141b
commit
0b122f3b43
@@ -305,7 +305,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
|||||||
task.tags.push(tagId);
|
task.tags.push(tagId);
|
||||||
} else {
|
} else {
|
||||||
Tasks.removeTagFromTask(task._id, tagId);
|
Tasks.removeTagFromTask(task._id, tagId);
|
||||||
task.tags.splice(tagIndex, 0);
|
task.tags.splice(tagIndex, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|||||||
Reference in New Issue
Block a user