0👍
✅
You can just chain them with then
and they will run one after another:
this.$store.dispatch('undoButton', this.undoBtnAPI).then(()=>{
this.$store.dispatch('getSQLData', this.apiQuery)
})
Source:stackexchange.com