mirror of
https://github.com/docusealco/docuseal
synced 2026-11-14 07:52:32 -05:00
prevent an infinite loop of field conditions
This commit is contained in:
1 parent
f090e79002
commit
e1d5a5b6a6
1 file changed
+1
-1
@@ -175,7 +175,7 @@ export default {
|
|||||||
fields () {
|
fields () {
|
||||||
if (this.item.submitter_uuid) {
|
if (this.item.submitter_uuid) {
|
||||||
return this.template.fields.reduce((acc, f) => {
|
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)
|
acc.push(f)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user