mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
FIX: Broken when iconList missing
This commit is contained in:
parent
530058918e
commit
441ac21053
@ -113,7 +113,7 @@ function iconClasses(icon, params) {
|
||||
function warnIfMissing(id) {
|
||||
if (warnMissingIcons) {
|
||||
let iconList = Session.currentProp("svgIconList");
|
||||
if (iconList.indexOf(id) === -1) {
|
||||
if (iconList && iconList.indexOf(id) === -1) {
|
||||
console.warn(`The icon "${id}" is missing from the SVG subset.`); // eslint-disable-line no-console
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user