mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 00:54:28 +00:00
Fix JS error on pull request page (#30838)
Fix this error seen on PR page, regression from https://github.com/go-gitea/gitea/pull/30803: Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
b30b7df9f4
commit
c4e875402b
@ -57,6 +57,7 @@ export function initRepoCommentForm() {
|
|||||||
|
|
||||||
function initBranchSelector() {
|
function initBranchSelector() {
|
||||||
const elSelectBranch = document.querySelector('.ui.dropdown.select-branch');
|
const elSelectBranch = document.querySelector('.ui.dropdown.select-branch');
|
||||||
|
if (!elSelectBranch) return;
|
||||||
const isForNewIssue = elSelectBranch.getAttribute('data-for-new-issue') === 'true';
|
const isForNewIssue = elSelectBranch.getAttribute('data-for-new-issue') === 'true';
|
||||||
|
|
||||||
const $selectBranch = $(elSelectBranch);
|
const $selectBranch = $(elSelectBranch);
|
||||||
|
Loading…
Reference in New Issue
Block a user