diff --git a/web-registry/src/components/organisms/ProjectLocationForm.tsx b/web-registry/src/components/organisms/ProjectLocationForm.tsx index e4fa95690b..50efb8ba01 100644 --- a/web-registry/src/components/organisms/ProjectLocationForm.tsx +++ b/web-registry/src/components/organisms/ProjectLocationForm.tsx @@ -18,6 +18,9 @@ export interface ProjectLocationFormValues { const ProjectLocationFormSchema = Yup.object().shape({ 'schema:location': Yup.object() + // before the user selects the location, the value is a string, + // but we don't want to show yup default type error message + .typeError('') .test('is-not-empty', requiredMessage, value => !isEmpty(value)) .required(requiredMessage), });