Browse Source

Fix removing checks

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v18.0.0beta1
Julius Härtl 4 years ago
parent
commit
c665d5475a
No account linked to committer's email address
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      apps/workflowengine/src/components/Rule.vue

+ 4
- 3
apps/workflowengine/src/components/Rule.vue View File

@@ -135,11 +135,12 @@ export default {
cancelRule() {
this.$store.dispatch('removeRule', this.rule)
},
removeCheck(check) {
async removeCheck(check) {
const index = this.rule.checks.findIndex(item => item === check)
if (index < 0) {
this.rule.checks.splice(index, 1)
if (index > -1) {
this.$delete(this.rule.checks, index)
}
this.$store.dispatch('updateRule', this.rule)
}
}
}

Loading…
Cancel
Save