Fix JS error on pull request page

This commit is contained in:
silverwind 2024-05-02 21:04:11 +02:00
parent e67fbe4f15
commit de385fd929
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
1 changed files with 1 additions and 0 deletions

View File

@ -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);