Fix error when trying to fetch incorrectly configured workflow triggers in admin
This commit is contained in:
parent
5f5a0fdd03
commit
346df62287
@ -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"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -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()
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user