From f172a8f3f86bb8353943c6053aa91aec72b14913 Mon Sep 17 00:00:00 2001 From: Nicola Squartini Date: Thu, 21 Dec 2023 17:53:43 +0100 Subject: [PATCH] fix: `validationText` --- src/app/form/widgets/BaseInputWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/form/widgets/BaseInputWidget.js b/src/app/form/widgets/BaseInputWidget.js index 83bfb7ee..69ec3d89 100644 --- a/src/app/form/widgets/BaseInputWidget.js +++ b/src/app/form/widgets/BaseInputWidget.js @@ -56,7 +56,7 @@ const BaseInputWidget = (props) => { } invalid={invalid} validationText={ - get(formState.errors, name) && get(formState.errors, name).message + invalid ? get(formState.errors, name)?.message : undefined } ref={ref} id={id}