File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ui/src/app/settings/components/repos-list Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments