Merge pull request #700 from timholl/master

Fixes dispatching of null action
This commit is contained in:
Raimund Schlüßler 2019-10-31 16:33:25 +01:00 committed by GitHub
commit 26684d53c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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