Skip to content

Commit 6f5892b

Browse files
committed
fix for al breaking validations
1 parent 0426e24 commit 6f5892b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/components/dockerRegistry/Docker.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,11 +716,19 @@ function DockerForm({
716716
...st.password,
717717
error: id || st.password.value ? isValidJsonStr : 'Mandatory',
718718
},
719+
registryUrl: { ...st.registryUrl, error: st.registryUrl.value ? '' : 'Mandatory' },
720+
}))
721+
return
722+
}
723+
} else {
724+
if (!customState.registryUrl.value) {
725+
setCustomState((st) => ({
726+
...st,
727+
registryUrl: { ...st.registryUrl, error: st.registryUrl.value ? '' : 'Mandatory' },
719728
}))
720729
return
721730
}
722731
}
723-
724732
} else if (
725733
selectedDockerRegistryType.value === RegistryType.ACR ||
726734
selectedDockerRegistryType.value === RegistryType.QUAY ||

0 commit comments

Comments
 (0)