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 {
|
class MultipleUploader extends Component {
|
||||||
handleChange = ({target}) => {
|
handleChange = ({target}) => {
|
||||||
if (target.validity.valid) {
|
if (target.validity.valid) {
|
||||||
this.props
|
this.props.mutate({
|
||||||
.mutate({
|
variables: {
|
||||||
variables: {
|
files: target.files
|
||||||
files: target.files
|
},
|
||||||
},
|
refetchQueries: [{
|
||||||
refetchQueries: [{
|
query: uploadsQuery
|
||||||
query: uploadsQuery
|
}]
|
||||||
}]
|
})
|
||||||
})
|
|
||||||
.then(({data}) => console.log('Mutation response:', data))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,16 +5,14 @@ import uploadsQuery from '../queries/uploads'
|
|||||||
class SingleUploader extends Component {
|
class SingleUploader extends Component {
|
||||||
handleChange = ({target}) => {
|
handleChange = ({target}) => {
|
||||||
if (target.validity.valid) {
|
if (target.validity.valid) {
|
||||||
this.props
|
this.props.mutate({
|
||||||
.mutate({
|
variables: {
|
||||||
variables: {
|
file: target.files[0]
|
||||||
file: target.files[0]
|
},
|
||||||
},
|
refetchQueries: [{
|
||||||
refetchQueries: [{
|
query: uploadsQuery
|
||||||
query: uploadsQuery
|
}]
|
||||||
}]
|
})
|
||||||
})
|
|
||||||
.then(({data}) => console.log('Mutation response:', data))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user