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