diff --git a/web/app/components/base/form/hooks/use-check-validated.ts b/web/app/components/base/form/hooks/use-check-validated.ts index 3a6b9860fe..b4f3ec2b9a 100644 --- a/web/app/components/base/form/hooks/use-check-validated.ts +++ b/web/app/components/base/form/hooks/use-check-validated.ts @@ -19,7 +19,7 @@ export const useCheckValidated = (form: AnyFormApi, FormSchemas: FormSchema[]) = acc[condition.variable] = values[condition.variable] return acc }, {} as Record) - const show = currentSchema?.show_on?.every((condition) => { + const show = show_on?.every((condition) => { const conditionValue = showOnValues[condition.variable] return conditionValue === condition.value })