Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Feb 25, 2022
1 parent 172cc7d commit cfe9042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/jobs/use-submit-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const useSubmitJob = () => {
const { refetchJobs } = useContext(StoreContext)
const engine = useDataEngine()
const submitJob = job => {
console.log('saving job', job)
return engine
.mutate(mutation, { variables: { job } })
.then(() => {
Expand All @@ -31,7 +30,8 @@ const useSubmitJob = () => {

// Throw any unexpected errors
throw error
})}
})
}

return [submitJob]
}
Expand Down

0 comments on commit cfe9042

Please sign in to comment.