Allow adding server without password (#48)

This commit is contained in:
jeffvli 2023-03-09 10:45:44 -08:00
parent b4664f45b4
commit 231f10cbe2

View File

@ -45,8 +45,7 @@ export const AddServerForm = ({ onCancel }: AddServerFormProps) => {
}, },
}); });
const isSubmitDisabled = const isSubmitDisabled = !form.values.name || !form.values.url || !form.values.username;
!form.values.name || !form.values.url || !form.values.username || !form.values.password;
const handleSubmit = form.onSubmit(async (values) => { const handleSubmit = form.onSubmit(async (values) => {
const authFunction = AUTH_FUNCTIONS[values.type]; const authFunction = AUTH_FUNCTIONS[values.type];