We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b30b7df commit c4e8754Copy full SHA for c4e8754
web_src/js/features/repo-legacy.js
@@ -57,6 +57,7 @@ export function initRepoCommentForm() {
57
58
function initBranchSelector() {
59
const elSelectBranch = document.querySelector('.ui.dropdown.select-branch');
60
+ if (!elSelectBranch) return;
61
const isForNewIssue = elSelectBranch.getAttribute('data-for-new-issue') === 'true';
62
63
const $selectBranch = $(elSelectBranch);
0 commit comments