[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-12-17 04:08:36 +00:00
committed by GitHub
parent d1bc109697
commit acf385a1f3
@@ -127,7 +127,10 @@ export const HandleRegistry = ({ registryId }: Props) => {
AddRegistrySchema.refine( AddRegistrySchema.refine(
(data) => { (data) => {
// When creating a new registry, password is required // When creating a new registry, password is required
if (!data.isEditing && (!data.password || data.password.length === 0)) { if (
!data.isEditing &&
(!data.password || data.password.length === 0)
) {
return false; return false;
} }
return true; return true;
@@ -285,12 +288,11 @@ export const HandleRegistry = ({ registryId }: Props) => {
name="password" name="password"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel> <FormLabel>Password{registryId && " (Optional)"}</FormLabel>
Password{registryId && " (Optional)"}
</FormLabel>
{registryId && ( {registryId && (
<FormDescription> <FormDescription>
Leave blank to keep existing password. Enter new password to test or update it. Leave blank to keep existing password. Enter new
password to test or update it.
</FormDescription> </FormDescription>
)} )}
<FormControl> <FormControl>