Merge pull request #700 from timholl/master
Fixes dispatching of null action
This commit is contained in:
commit
26684d53c1
1 changed files with 5 additions and 0 deletions
|
@ -60,6 +60,11 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
react: function() {
|
||||
// Prevent event dispatching if action is null (e.g. successful store)
|
||||
if (this.status.action === null) {
|
||||
return
|
||||
}
|
||||
|
||||
this.$store.dispatch(this.status.action, { task: this.task, etag: this.conflict })
|
||||
.then(() => {
|
||||
this.task.conflict = false
|
||||
|
|
Loading…
Reference in a new issue