loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Avoid JS error on issue/pr list when logged out (#29854)

When logged out, the checkboxes are not there on the issue/pr lists,
which would cause an error here.

Fixes: https://github.com/go-gitea/gitea/issues/29862

---------

Co-authored-by: delvh <dev.lh@web.de>
(cherry picked from commit 33973ac567d6681bda26d82f26b7294a297c693f)

authored by

silverwind
delvh
and committed by
Earl Warren
003d860a 2141bc32

+1
+1
web_src/js/features/repo-issue-list.js
··· 9 9 10 10 function initRepoIssueListCheckboxes() { 11 11 const issueSelectAll = document.querySelector('.issue-checkbox-all'); 12 + if (!issueSelectAll) return; // logged out state 12 13 const issueCheckboxes = document.querySelectorAll('.issue-checkbox'); 13 14 14 15 const syncIssueSelectionState = () => {