mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
[#1444] bug fix
This commit is contained in:
@@ -604,7 +604,7 @@ api.deleteTag = function(req, res){
|
||||
var i = _.findIndex(user.tags, {id:req.params.tid});
|
||||
if (~i) {
|
||||
var tag = user.tags[i];
|
||||
delete user.filters[tid];
|
||||
delete user.filters[tag.id];
|
||||
user.tags.splice(i,1);
|
||||
// remove tag from all tasks
|
||||
_.each(user.tasks, function(task) {
|
||||
|
||||
@@ -239,7 +239,7 @@ UserSchema.methods.toJSON = function() {
|
||||
delete doc["#{type}Ids"]
|
||||
});
|
||||
delete doc.tasks
|
||||
//doc.filters = {};
|
||||
doc.filters = {};
|
||||
|
||||
return doc;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user