mirror of
https://gitee.com/gitea/gitea
synced 2025-11-10 03:20:24 +08:00
Backport #26461
This commit is contained in:
@@ -32,7 +32,7 @@ export function matchMention(queryText) {
|
||||
|
||||
// results is a map of weights, lower is better
|
||||
const results = new Map();
|
||||
for (const obj of window.config.tributeValues) {
|
||||
for (const obj of window.config.tributeValues ?? []) {
|
||||
const index = obj.key.toLowerCase().indexOf(query);
|
||||
if (index === -1) continue;
|
||||
const existing = results.get(obj);
|
||||
|
||||
Reference in New Issue
Block a user