[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

View File

@@ -127,7 +127,10 @@ export const HandleRegistry = ({ registryId }: Props) => {
AddRegistrySchema.refine(
(data) => {
// 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 true;
@@ -285,12 +288,11 @@ export const HandleRegistry = ({ registryId }: Props) => {
name="password"
render={({ field }) => (
<FormItem>
<FormLabel>
Password{registryId && " (Optional)"}
</FormLabel>
<FormLabel>Password{registryId && " (Optional)"}</FormLabel>
{registryId && (
<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>
)}
<FormControl>