Skip to content

Commit

Permalink
Fix JS error on pull request page (#30838)
Browse files Browse the repository at this point in the history
Fix this error seen on PR page, regression from
#30803:

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
  • Loading branch information
silverwind and wxiaoguang authored May 3, 2024
1 parent b30b7df commit c4e8754
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 c4e8754

Please sign in to comment.