Skip to content

Commit

Permalink
Fix JS error on pull request page (#30838) (#30841)
Browse files Browse the repository at this point in the history
Backport #30838 by silverwind

Fix this error seen on PR page, regression from
#30803:

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
  • Loading branch information
3 people authored May 3, 2024
1 parent 41f8ef8 commit 7db434b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web_src/js/features/repo-legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export function initRepoCommentForm() {

function initBranchSelector() {
const elSelectBranch = document.querySelector('.ui.dropdown.select-branch');
if (!elSelectBranch) return;
const isForNewIssue = elSelectBranch.getAttribute('data-for-new-issue') === 'true';

const $selectBranch = $(elSelectBranch);
Expand Down

0 comments on commit 7db434b

Please sign in to comment.