File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function makeCollections({mentions, emoji}) {
31
31
32
32
if ( mentions ) {
33
33
collections . push ( {
34
- values : window . config . mentionValues ,
34
+ values : window . config . mentionValues ?? [ ] ,
35
35
requireLeadingSpace : true ,
36
36
menuItemTemplate : ( item ) => {
37
37
return `
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export function matchMention(queryText) {
32
32
33
33
// results is a map of weights, lower is better
34
34
const results = new Map ( ) ;
35
- for ( const obj of window . config . mentionValues ) {
35
+ for ( const obj of window . config . mentionValues ?? [ ] ) {
36
36
const index = obj . key . toLowerCase ( ) . indexOf ( query ) ;
37
37
if ( index === - 1 ) continue ;
38
38
const existing = results . get ( obj ) ;
You can’t perform that action at this time.
0 commit comments