diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-09-02 12:32:45 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-09-10 09:01:25 +0200 |
commit | c665d5475affc844e583a8a546466ae27c045bb5 (patch) | |
tree | d1df26e5a02562a8ce74ab7c6ae3d9d3e1bf9d7e /apps | |
parent | 2364fc84d78df931c5fc020f7fd052d980f8a7bb (diff) | |
download | nextcloud-server-c665d5475affc844e583a8a546466ae27c045bb5.tar.gz nextcloud-server-c665d5475affc844e583a8a546466ae27c045bb5.zip |
Fix removing checks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/workflowengine/src/components/Rule.vue | 7 |
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) } } } |