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:
Lucas F T Hennigen
2016-05-31 16:55:30 -03:00
committed by Sabe Jones
parent b33505141b
commit 0b122f3b43

View File

@@ -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);
}
}
}]);