1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-10 08:15:25 +02:00

fix(stack): fix edit git stack validation EE-5855 (#10339)

This commit is contained in:
cmeng 2023-09-22 10:09:24 +12:00 committed by GitHub
parent dfce48cd5e
commit fb7a2fbbe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 4 deletions

View file

@ -165,7 +165,8 @@ export function gitAuthValidation(
NewCredentialName: string()
.default('')
.when(['RepositoryAuthentication', 'SaveCredential'], {
is: true,
is: (RepositoryAuthentication: boolean, SaveCredential: boolean) =>
RepositoryAuthentication && SaveCredential && !isAuthEdit,
then: string()
.required('Name is required')
.test(