Last active
December 17, 2019 05:56
-
-
Save anoobbava/66d8e97d24f245e496a0c25ed98e6d77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
saveTodoAction ({ commit }, todoData) { | |
return new Promise((resolve, reject) => { | |
ApiHelper.todo(todoData) | |
.then(response => { | |
commit('saveTodoMutation', 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