From 5f3a8bf391f44e5f5d0a9cf0dd1a37c081d418ee Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Mon, 19 Aug 2024 19:29:53 +0300 Subject: [PATCH] fix condition --- app/javascript/submission_form/form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/submission_form/form.vue b/app/javascript/submission_form/form.vue index 039baffcb..c84c7eb15 100644 --- a/app/javascript/submission_form/form.vue +++ b/app/javascript/submission_form/form.vue @@ -925,7 +925,7 @@ export default { return field.conditions.reduce((acc, c) => { const field = this.fieldsUuidIndex[c.field_uuid] - if (['not_empty', 'checked', 'equal', 'contains'].includes(c.action) && !this.checkFieldConditions(field)) { + if (['not_empty', 'checked', 'equal', 'contains'].includes(c.action) && field && !this.checkFieldConditions(field)) { return false }