Skip to content

Commit

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

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
  • Loading branch information
2 people authored and GiteaBot committed May 3, 2024
1 parent 41f8ef8 commit 5814bd9
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 5814bd9

Please sign in to comment.