Skip to content

Commit ebeae20

Browse files
fix(ui): fix bearerToken validate in helm connect page (cherry-pick argoproj#22791) (argoproj#22798)
Signed-off-by: linghaoSu <[email protected]> Co-authored-by: Linghao Su <[email protected]>
1 parent 3ae374c commit ebeae20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/app/settings/components/repos-list/repos-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class ReposList extends React.Component<
219219
tlsClientCertKey: !validURLValues.tlsClientCertKey && validURLValues.tlsClientCertData && 'TLS client cert key is required if TLS client cert is given.',
220220
bearerToken:
221221
(validURLValues.password && validURLValues.bearerToken && 'Either the password or the bearer token must be set, but not both.') ||
222-
(validURLValues.type != 'git' && 'Bearer token is only supported for Git BitBucket Data Center repositories.')
222+
(validURLValues.bearerToken && validURLValues.type != 'git' && 'Bearer token is only supported for Git BitBucket Data Center repositories.')
223223
};
224224
case ConnectionMethod.GITHUBAPP:
225225
const githubAppValues = params as NewGitHubAppRepoParams;

0 commit comments

Comments
 (0)