Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-05-29 12:24:35 +0300
committerPhil Hughes <me@iamphill.com>2019-05-29 12:24:35 +0300
commit1224aa516eefe7be1c8ca306625d5d0b6d524d76 (patch)
tree0fe19052d0496ecef64a1f0727a3dc97a85c4d1e /app/assets/javascripts/repository/utils
parent4a9387242dbbfee9e9ddc7b46eb69ad6a2f4ba2c (diff)
Created repository list breadcrumbs Vue app
Diffstat (limited to 'app/assets/javascripts/repository/utils')
-rw-r--r--app/assets/javascripts/repository/utils/title.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/repository/utils/title.js b/app/assets/javascripts/repository/utils/title.js
index 3c3e918c0a8..4e194640e92 100644
--- a/app/assets/javascripts/repository/utils/title.js
+++ b/app/assets/javascripts/repository/utils/title.js
@@ -1,5 +1,7 @@
// eslint-disable-next-line import/prefer-default-export
export const setTitle = (pathMatch, ref, project) => {
+ if (!pathMatch) return;
+
const path = pathMatch.replace(/^\//, '');
const isEmpty = path === '';