Merge pull request #518 from coralproject/flag-action-fix

Added fix for flag actions
This commit is contained in:
Gabriela Rodríguez Berón
2017-04-21 11:56:24 -07:00
committed by GitHub
+3 -1
View File
@@ -8,7 +8,9 @@ const FlagAction = {
return group_id;
},
user({user_id}, _, {loaders: {Users}}) {
return Users.getByID.load(user_id);
if (user_id) {
return Users.getByID.load(user_id);
}
},
};