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; }