diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 21:08:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 21:08:59 +0300 |
commit | cc6b6a7b78befba0fa003def271d446c51d67088 (patch) | |
tree | 63cf925f984ee20379b5c9057e4a3766e8221b36 /app/assets/javascripts/token_access/components/token_projects_table.vue | |
parent | 0a353a9fa386ad60374daa9bad56f41bb5491c33 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/token_access/components/token_projects_table.vue')
-rw-r--r-- | app/assets/javascripts/token_access/components/token_projects_table.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/token_access/components/token_projects_table.vue b/app/assets/javascripts/token_access/components/token_projects_table.vue index c00dd882895..ee88b4ec339 100644 --- a/app/assets/javascripts/token_access/components/token_projects_table.vue +++ b/app/assets/javascripts/token_access/components/token_projects_table.vue @@ -29,6 +29,9 @@ export default { removeProject(project) { this.$emit('removeProject', project); }, + namespaceFallback(namespace) { + return namespace?.fullPath || ''; + }, }, }; </script> @@ -51,7 +54,9 @@ export default { </template> <template #cell(namespace)="{ item }"> - <span data-testid="token-access-project-namespace">{{ item.namespace.fullPath }}</span> + <span data-testid="token-access-project-namespace"> + {{ namespaceFallback(item.namespace) }} + </span> </template> <template #cell(actions)="{ item }"> |