Removed console logs.

This commit is contained in:
Jayden Seric 2017-04-09 14:58:34 +10:00
parent 3b11a922f6
commit 67eb0d6ff7
2 changed files with 16 additions and 20 deletions

View File

@ -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))
} }
} }

View File

@ -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))
} }
} }