We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f199ad commit 5d6171dCopy full SHA for 5d6171d
1 file changed
src/components/repo-form.tsx
@@ -13,7 +13,7 @@ const initialValues: Repo = {
13
14
const validationSchema = object().shape({
15
owner: string().required("Please enter a repository owner"),
16
- name: string().required("Please enter a repository name"),
+ name: string().optional(),
17
});
18
19
function RepoFormComponent(props: FormikProps<Repo>) {
@@ -106,7 +106,7 @@ export function RepoForm() {
106
validateOnBlur={false}
107
validateOnChange={false}
108
onSubmit={(values) => {
109
- history.push(`/${values.owner}/${values.name}`);
+ history.push(`/${values.owner}/` + (values.name || ''))
110
}}
111
/>
112
);
0 commit comments