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}) {
3131
3232 if ( mentions ) {
3333 collections . push ( {
34- values : window . config . tributeValues ,
34+ values : window . config . tributeValues ?? [ ] ,
3535 requireLeadingSpace : true ,
3636 menuItemTemplate : ( item ) => {
3737 return `
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export function matchMention(queryText) {
3232
3333 // results is a map of weights, lower is better
3434 const results = new Map ( ) ;
35- for ( const obj of window . config . tributeValues ) {
35+ for ( const obj of window . config . tributeValues ?? [ ] ) {
3636 const index = obj . key . toLowerCase ( ) . indexOf ( query ) ;
3737 if ( index === - 1 ) continue ;
3838 const existing = results . get ( obj ) ;
You can’t perform that action at this time.
0 commit comments