Skip to content

Commit 40cf044

Browse files
committed
add optional to isSectionVisible
1 parent 2b0ea91 commit 40cf044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/renderer/field/fieldLogic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function evaluateFieldDependents(field: FormField, values: any, context: FormCon
102102
evaluateExpression,
103103
updateFormField,
104104
);
105-
targetSection.questions = targetSection.questions.map((question) => {
105+
targetSection.questions = targetSection?.questions.map((question) => {
106106
if (question.id === dependent.id) {
107107
return dependent;
108108
}

0 commit comments

Comments
 (0)