From 67d16c653fbed71a91a288a8e08e21e8c681a003 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 6 Jul 2023 00:56:10 +0800 Subject: [PATCH] Fix branch selector on release page in 1.19 (#25706) Fix #25705 Regression of #24369 There is no problem in 1.20 because there is #24459 --- web_src/js/features/repo-legacy.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 9fda108813..79d640d242 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) {