Skip to content

Commit 4a75a75

Browse files
authored
fix: restore ability to connect a repo in the GUI (argoproj#25259)
Signed-off-by: Allan Yung <allan.yung@bbdsoftware.com>
1 parent 10f60b9 commit 4a75a75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export const ReposList = ({match, location}: RouteComponentProps) => {
364364

365365
// Connect a new repository or create a repository credentials for HTTPS repositories
366366
const connectHTTPSRepo = async (params: NewHTTPSRepoParams) => {
367-
if (credsTemplate) {
367+
if (credsTemplate.current) {
368368
await createHTTPSCreds({
369369
type: params.type,
370370
url: params.url,
@@ -425,7 +425,7 @@ export const ReposList = ({match, location}: RouteComponentProps) => {
425425

426426
// Connect a new repository or create a repository credentials for GitHub App repositories
427427
const connectGitHubAppRepo = async (params: NewGitHubAppRepoParams) => {
428-
if (credsTemplate) {
428+
if (credsTemplate.current) {
429429
createGitHubAppCreds({
430430
url: params.url,
431431
githubAppPrivateKey: params.githubAppPrivateKey,
@@ -461,7 +461,7 @@ export const ReposList = ({match, location}: RouteComponentProps) => {
461461

462462
// Connect a new repository or create a repository credentials for GitHub App repositories
463463
const connectGoogleCloudSourceRepo = async (params: NewGoogleCloudSourceRepoParams) => {
464-
if (credsTemplate) {
464+
if (credsTemplate.current) {
465465
createGoogleCloudSourceCreds({
466466
url: params.url,
467467
gcpServiceAccountKey: params.gcpServiceAccountKey,

0 commit comments

Comments
 (0)