Skip to content

Instantly share code, notes, and snippets.

@anoobbava
Last active December 16, 2019 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoobbava/784d907a66b764f07e716b49a96d4a13 to your computer and use it in GitHub Desktop.
Save anoobbava/784d907a66b764f07e716b49a96d4a13 to your computer and use it in GitHub Desktop.
updateTodoAction ({ commit }, todo) {
return new Promise((resolve, reject) => {
ApiHelper.updateTodo(todo)
.then(response => {
commit('updateTodoMutation', response)
resolve(response)
})
.catch(error => {
reject(error)
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment