Bug corrected
This commit is contained in:
1 parent
12fb40fd9c
commit
8c76fef385
3 files changed
+3
-2
No files matched your search
@@ -7,7 +7,7 @@ class UserProfile extends Component {
|
||||
displayUserProfile(){
|
||||
|
||||
const {user} = this.props.data;
|
||||
|
||||
console.log(user);
|
||||
if(user){
|
||||
return(
|
||||
<div>
|
||||
|
||||
@@ -9,6 +9,7 @@ const getUsersQuery = gql`
|
||||
lastName
|
||||
role {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ const RootQuery = new GraphQLObjectType({
|
||||
resolve(parent,args) {
|
||||
// Code to get data from data source.
|
||||
|
||||
return User.findById(args.id, onRespnse);
|
||||
return User.findById(args.id);
|
||||
}
|
||||
},
|
||||
role: {
|
||||
|
||||
Reference in new issue
Block a user