diff --git a/src/frontend/devops-repository/src/components/Header/index.vue b/src/frontend/devops-repository/src/components/Header/index.vue index 10a8e2a73e..6f39c48dc8 100644 --- a/src/frontend/devops-repository/src/components/Header/index.vue +++ b/src/frontend/devops-repository/src/components/Header/index.vue @@ -203,7 +203,7 @@ uid: this.userInfo.name } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { window.open(res, '_blank') } }) diff --git a/src/frontend/devops-repository/src/views/repoGeneric/index.vue b/src/frontend/devops-repository/src/views/repoGeneric/index.vue index e0d64d7cef..6d0665d95f 100644 --- a/src/frontend/devops-repository/src/views/repoGeneric/index.vue +++ b/src/frontend/devops-repository/src/views/repoGeneric/index.vue @@ -789,7 +789,7 @@ repoName: this.repoName } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -966,7 +966,7 @@ path: fullPath } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1047,7 +1047,7 @@ path: row.fullPath } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1147,7 +1147,7 @@ repoName: this.repoName } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1223,7 +1223,7 @@ repoName: this.repoName } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1310,7 +1310,7 @@ path: row.fullPath } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, @@ -1366,7 +1366,7 @@ path: row.fullPath } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, diff --git a/src/frontend/devops-repository/src/views/repoList/createRepoDialog.vue b/src/frontend/devops-repository/src/views/repoList/createRepoDialog.vue index 72baf42066..da9708072b 100644 --- a/src/frontend/devops-repository/src/views/repoList/createRepoDialog.vue +++ b/src/frontend/devops-repository/src/views/repoList/createRepoDialog.vue @@ -292,7 +292,7 @@ uid: this.userInfo.name } }).then(res => { - if (res !== '') { + if (res !== '' && res !== null) { this.showIamDenyDialog = true this.showData = { projectId: this.projectId, diff --git a/src/frontend/devops-repository/src/views/repoList/index.vue b/src/frontend/devops-repository/src/views/repoList/index.vue index 195270e7f4..5c42a95476 100644 --- a/src/frontend/devops-repository/src/views/repoList/index.vue +++ b/src/frontend/devops-repository/src/views/repoList/index.vue @@ -1,7 +1,8 @@