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

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

View File

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