Skip to content

Commit 71c1c36

Browse files
committed
chore: add fallback for credential type
1 parent f4cdeeb commit 71c1c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/dockerRegistry/Docker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ const DockerForm = ({
545545
isPublic ? RegistryStorageType.OCI_PUBLIC : RegistryStorageType.OCI_PRIVATE,
546546
)
547547
const [authenticationType, setAuthenticationType] = useState<OtherRegistryAuthenticationType>(
548-
id ? authCredentialsType : OtherRegistryAuthenticationType.USERNAME_PASSWORD,
548+
id && authCredentialsType ? authCredentialsType : OtherRegistryAuthenticationType.USERNAME_PASSWORD,
549549
)
550550

551551
const InitialValueOfIsContainerStore: boolean =

0 commit comments

Comments
 (0)