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:
parent
dfce48cd5e
commit
fb7a2fbbe6
4 changed files with 13 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue