diff --git a/apps/workflowengine/src/components/Check.vue b/apps/workflowengine/src/components/Check.vue index 612a177c8c2..136f6d21280 100644 --- a/apps/workflowengine/src/components/Check.vue +++ b/apps/workflowengine/src/components/Check.vue @@ -23,7 +23,7 @@ v-if="currentElement" ref="checkComponent" :disabled="!currentOption" - :check="check" + :operator="check.operator" :model-value="check.value" class="option" @update:model-value="updateCheck" @@ -166,7 +166,8 @@ export default { this.$emit('validate', this.valid) }, updateCheck(event) { - const matchingOperator = this.operators.findIndex((operator) => this.check.operator === operator.operator) + const selectedOperator = event?.operator || this.currentOperator?.operator || this.check.operator + const matchingOperator = this.operators.findIndex((operator) => selectedOperator === operator.operator) if (this.check.class !== this.currentOption.class || matchingOperator === -1) { this.currentOperator = this.operators[0] } diff --git a/apps/workflowengine/src/components/Checks/RequestURL.vue b/apps/workflowengine/src/components/Checks/RequestURL.vue index 9fb3d70178c..8f34da84fec 100644 --- a/apps/workflowengine/src/components/Checks/RequestURL.vue +++ b/apps/workflowengine/src/components/Checks/RequestURL.vue @@ -5,6 +5,7 @@