diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-19 15:09:09 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-19 15:09:09 +0000 |
commit | c7e385e282bcb8505589bce526e692b7bb819ffa (patch) | |
tree | 3e64affe1c2eebdcaa18cc6319b603f44b03b07e /app/assets/javascripts/pages/projects | |
parent | cd3e2c7b9355f8990ab294b34b5e4add4f3985fa (diff) | |
download | gitlab-ce-c7e385e282bcb8505589bce526e692b7bb819ffa.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/pages/projects')
-rw-r--r-- | app/assets/javascripts/pages/projects/registry/repositories/index.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/assets/javascripts/pages/projects/registry/repositories/index.js b/app/assets/javascripts/pages/projects/registry/repositories/index.js index 47fea2be189..73469e287ed 100644 --- a/app/assets/javascripts/pages/projects/registry/repositories/index.js +++ b/app/assets/javascripts/pages/projects/registry/repositories/index.js @@ -3,7 +3,11 @@ import registryExplorer from '~/registry/explorer/index'; document.addEventListener('DOMContentLoaded', () => { initRegistryImages(); - const { attachMainComponent, attachBreadcrumb } = registryExplorer(); - attachBreadcrumb(); - attachMainComponent(); + + const explorer = registryExplorer(); + + if (explorer) { + explorer.attachBreadcrumb(); + explorer.attachMainComponent(); + } }); |