prevent an infinite loop of field conditions

pull/475/head
Alex Turchyn 7 months ago committed by Pete Matsyburka
parent f090e79002
commit e1d5a5b6a6

@ -175,7 +175,7 @@ export default {
fields () {
if (this.item.submitter_uuid) {
return this.template.fields.reduce((acc, f) => {
if (f !== this.item) {
if (f !== this.item && (!f.conditions?.length || !f.conditions.find((c) => c.field_uuid === this.item.uuid))) {
acc.push(f)
}

Loading…
Cancel
Save