]> source.dussan.org Git - gitea.git/commit
Avoiding accessing undefined mentionValues (#26461)
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 12 Aug 2023 08:36:23 +0000 (16:36 +0800)
committerGitHub <noreply@github.com>
Sat, 12 Aug 2023 08:36:23 +0000 (08:36 +0000)
commit74930b1ccd9acacd1ddaa30d1b4849b0e4570d7c
treec67b4878f2bf7b47278283be4e9cd6f73ed7990d
parent2fc0eb913caf40aec056d49f5838992e136208a2
Avoiding accessing undefined mentionValues (#26461)

The `window.config.mentionValues` might be undefined:

```
{{if or .Participants .Assignees .MentionableTeams}}
    mentionValues: ...
{{end}}
```
web_src/js/features/tribute.js
web_src/js/utils/match.js