summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/workflowengine/src/components/Rule.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/workflowengine/src/components/Rule.vue b/apps/workflowengine/src/components/Rule.vue
index d3cf7291af4..fab79109516 100644
--- a/apps/workflowengine/src/components/Rule.vue
+++ b/apps/workflowengine/src/components/Rule.vue
@@ -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)
}
}
}