mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	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>
This commit is contained in:
		| @@ -9,6 +9,7 @@ import {DELETE, POST} from '../modules/fetch.js'; | ||||
|  | ||||
| function initRepoIssueListCheckboxes() { | ||||
|   const issueSelectAll = document.querySelector('.issue-checkbox-all'); | ||||
|   if (!issueSelectAll) return; // logged out state | ||||
|   const issueCheckboxes = document.querySelectorAll('.issue-checkbox'); | ||||
|  | ||||
|   const syncIssueSelectionState = () => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user