1
0
Fork 0
forked from forgejo/forgejo

Avoiding accessing undefined tributeValues #26461 (#26462)

Backport #26461

(cherry picked from commit 9112ce22a4)
This commit is contained in:
wxiaoguang 2023-08-12 16:30:29 +08:00 committed by Earl Warren
parent 3e48942b1e
commit a12ea7a7cd
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
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 `