We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bdc38e commit 9112ce2Copy full SHA for 9112ce2
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.tributeValues,
+ values: window.config.tributeValues ?? [],
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.tributeValues) {
+ for (const obj of window.config.tributeValues ?? []) {
const index = obj.key.toLowerCase().indexOf(query);
if (index === -1) continue;
38
const existing = results.get(obj);
0 commit comments