diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 9fda1088135..79d640d242b 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -486,12 +486,7 @@ export function initRepository() { return; } - - // File list and commits - if ($('.repository.file.list').length > 0 || $('.branch-dropdown').length > 0 || - $('.repository.commits').length > 0 || $('.repository.release').length > 0) { - initRepoBranchTagDropdown('.choose.reference .dropdown'); - } + initRepoBranchTagDropdown('.choose.reference .dropdown'); // Wiki if ($('.repository.wiki.view').length > 0) {