We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fc0eb9 commit 74930b1Copy full SHA for 74930b1
web_src/js/features/tribute.js
@@ -31,7 +31,7 @@ function makeCollections({mentions, emoji}) {
31
32
if (mentions) {
33
collections.push({
34
- values: window.config.mentionValues,
+ values: window.config.mentionValues ?? [],
35
requireLeadingSpace: true,
36
menuItemTemplate: (item) => {
37
return `
web_src/js/utils/match.js
@@ -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.mentionValues) {
+ for (const obj of window.config.mentionValues ?? []) {
const index = obj.key.toLowerCase().indexOf(query);
if (index === -1) continue;
38
const existing = results.get(obj);
0 commit comments