Skip to content

Commit

Permalink
Fix branch selector on release page in 1.19 (#25706)
Browse files Browse the repository at this point in the history
Fix #25705

Regression of #24369

There is no problem in 1.20 because there is #24459
  • Loading branch information
wxiaoguang authored Jul 5, 2023
1 parent d424357 commit 67d16c6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions web_src/js/features/repo-legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 67d16c6

Please sign in to comment.