Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Aug 19, 2024
1 parent a0a0fdd commit 5f3a8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/submission_form/form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5f3a8bf

Please sign in to comment.