From 02e14306c8704caf062f6c0ed254a8bd1a2f5006 Mon Sep 17 00:00:00 2001 From: Akshata Katwal Date: Tue, 26 Nov 2024 18:10:59 +0530 Subject: [PATCH] Issue feat PS-2647:Assign centers showing in red initially and once checked centers it turns to yellow --- src/components/DynamicForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DynamicForm.tsx b/src/components/DynamicForm.tsx index e3fe2c8f..15aa4677 100644 --- a/src/components/DynamicForm.tsx +++ b/src/components/DynamicForm.tsx @@ -221,9 +221,9 @@ const DynamicForm: React.FC = ({ case 'minItems': { const property = error.property.substring(1); if (schema.properties?.[property]?.type === 'array' && schema.required?.includes(property)) { - error.message = t('FORM_ERROR_MESSAGES.THIS_IS_REQUIRED_FIELD', { + error.message = submittedButtonStatus ? t('FORM_ERROR_MESSAGES.THIS_IS_REQUIRED_FIELD', { minLength: schema.properties?.[property]?.minLength, - }); + }):"" } break; }