浏览代码

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>
tags/v1.22.0-rc0
silverwind 2 个月前
父节点
当前提交
33973ac567
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      web_src/js/features/repo-issue-list.js

+ 1
- 0
web_src/js/features/repo-issue-list.js 查看文件

@@ -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 = () => {

正在加载...
取消
保存