Removed console logs.
This commit is contained in:
parent
3b11a922f6
commit
67eb0d6ff7
@ -5,16 +5,14 @@ import uploadsQuery from '../queries/uploads'
|
||||
class MultipleUploader extends Component {
|
||||
handleChange = ({target}) => {
|
||||
if (target.validity.valid) {
|
||||
this.props
|
||||
.mutate({
|
||||
variables: {
|
||||
files: target.files
|
||||
},
|
||||
refetchQueries: [{
|
||||
query: uploadsQuery
|
||||
}]
|
||||
})
|
||||
.then(({data}) => console.log('Mutation response:', data))
|
||||
this.props.mutate({
|
||||
variables: {
|
||||
files: target.files
|
||||
},
|
||||
refetchQueries: [{
|
||||
query: uploadsQuery
|
||||
}]
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -5,16 +5,14 @@ import uploadsQuery from '../queries/uploads'
|
||||
class SingleUploader extends Component {
|
||||
handleChange = ({target}) => {
|
||||
if (target.validity.valid) {
|
||||
this.props
|
||||
.mutate({
|
||||
variables: {
|
||||
file: target.files[0]
|
||||
},
|
||||
refetchQueries: [{
|
||||
query: uploadsQuery
|
||||
}]
|
||||
})
|
||||
.then(({data}) => console.log('Mutation response:', data))
|
||||
this.props.mutate({
|
||||
variables: {
|
||||
file: target.files[0]
|
||||
},
|
||||
refetchQueries: [{
|
||||
query: uploadsQuery
|
||||
}]
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user