1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-11 03:58:20 +00:00

Avoiding accessing undefined tributeValues #26461 (#26462)

Backport #26461
This commit is contained in:
wxiaoguang
2023-08-12 16:30:29 +08:00
committed by GitHub
parent 2bdc38e592
commit 9112ce22a4
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ function makeCollections({mentions, emoji}) {
if (mentions) {
collections.push({
values: window.config.tributeValues,
values: window.config.tributeValues ?? [],
requireLeadingSpace: true,
menuItemTemplate: (item) => {
return `