diff --git a/apps/workflowengine/js/workflowengine.js b/apps/workflowengine/js/workflowengine.js index 11ce0c4e89..7ecc2c5bdb 100644 Binary files a/apps/workflowengine/js/workflowengine.js and b/apps/workflowengine/js/workflowengine.js differ diff --git a/apps/workflowengine/js/workflowengine.js.map b/apps/workflowengine/js/workflowengine.js.map index 42997994b6..12b6a69490 100644 Binary files a/apps/workflowengine/js/workflowengine.js.map and b/apps/workflowengine/js/workflowengine.js.map differ diff --git a/apps/workflowengine/src/components/Check.vue b/apps/workflowengine/src/components/Check.vue index c15907852e..cfd0f034ad 100644 --- a/apps/workflowengine/src/components/Check.vue +++ b/apps/workflowengine/src/components/Check.vue @@ -121,6 +121,7 @@ export default { this.deleteVisible = false }, validate() { + this.valid = true if (this.currentOption && this.currentOption.validate) { this.valid = !!this.currentOption.validate(this.check) } diff --git a/apps/workflowengine/src/components/Rule.vue b/apps/workflowengine/src/components/Rule.vue index 7796180be6..c6e23a8f18 100644 --- a/apps/workflowengine/src/components/Rule.vue +++ b/apps/workflowengine/src/components/Rule.vue @@ -19,7 +19,7 @@ type="button" class="check--add" value="Add a new filter" - @click="rule.checks.push({class: null, operator: null, value: null})"> + @click="rule.checks.push({class: null, operator: null, value: ''})">
diff --git a/apps/workflowengine/src/store.js b/apps/workflowengine/src/store.js index c02aa99f63..79524ab451 100644 --- a/apps/workflowengine/src/store.js +++ b/apps/workflowengine/src/store.js @@ -138,7 +138,7 @@ const store = new Vuex.Store({ }, getters: { getRules(state) { - return state.rules.sort((rule1, rule2) => { + return state.rules.filter((rule) => typeof state.operations[rule.class] !== 'undefined').sort((rule1, rule2) => { return rule1.id - rule2.id || rule2.class - rule1.class }) },