From edfb0e9950b7b9c4dc364f42dc21dd4aecf732ba Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Wed, 6 Sep 2023 23:23:21 +0800 Subject: [PATCH] fix(console): redirectUri input error message should be displayed properly (#4440) --- packages/console/src/mdx-components/UriInputField/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/mdx-components/UriInputField/index.tsx b/packages/console/src/mdx-components/UriInputField/index.tsx index 4afde81b5..6290984ea 100644 --- a/packages/console/src/mdx-components/UriInputField/index.tsx +++ b/packages/console/src/mdx-components/UriInputField/index.tsx @@ -89,7 +89,7 @@ function UriInputField({ name, defaultValue }: Props) { defaultValue={defaultValueArray} rules={{ validate: createValidatorForRhf({ - required: t('errors.required_field_missing_plural', { field: title }), + required: t('errors.required_field_missing_plural', { field: t(title) }), pattern: { verify: (value) => !value || uriValidator(value), message: t('errors.invalid_uri_format'),