3
0

Fix error when trying to fetch incorrectly configured workflow triggers in admin

This commit is contained in:
Katrin Yordanova 2023-03-10 12:14:54 +02:00
parent 5f5a0fdd03
commit 346df62287
2 changed files with 5 additions and 2 deletions

View File

@ -17,8 +17,12 @@
<samp <samp
v-for="(c, index) in trigger.item.constraints" v-for="(c, index) in trigger.item.constraints"
:key="index" :key="index"
>
<template
v-if="c.name"
> >
{{ c.name[0].toUpperCase() + c.name.slice(1).toLowerCase() }} {{ c.op }} "{{ c.values.join(' or ') }}" {{ c.name[0].toUpperCase() + c.name.slice(1).toLowerCase() }} {{ c.op }} "{{ c.values.join(' or ') }}"
</template>
<code <code
v-if="index < trigger.item.constraints.length - 1" v-if="index < trigger.item.constraints.length - 1"
> >

View File

@ -453,7 +453,6 @@ export default {
eventChanged () { eventChanged () {
this.item.triggers.constraints = [] this.item.triggers.constraints = []
this.addConstraint()
this.$root.$emit('change-detected') this.$root.$emit('change-detected')
this.updateDefaultName() this.updateDefaultName()
}, },