Cleaning Console.log
This commit is contained in:
1 parent
7b784b7ef2
commit
b68cf6b7b4
2 files changed
+1
-2
No files matched your search
@@ -156,7 +156,6 @@ class UserSearch extends Component {
|
||||
if (data.loading) {
|
||||
return (<div> Loading Users... </div>)
|
||||
} else {
|
||||
console.log(data)
|
||||
if (data.usersSearch === undefined) {
|
||||
return (<div> No Users to Display </div>)
|
||||
} else {
|
||||
|
||||
@@ -163,7 +163,7 @@ const RootQuery = new GraphQLObjectType({
|
||||
if (args.lastName !== null && args.lastName !== '') { mongoQuery.$or.push({lastName: args.lastName}) }
|
||||
|
||||
if (mongoQuery.$or.length === 0) { mongoQuery = {} }
|
||||
console.log('mongoQuery', mongoQuery)
|
||||
|
||||
return User.find(mongoQuery)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user