FIX: Broken when iconList missing

This commit is contained in:
Robin Ward 2020-08-17 15:49:07 -04:00
parent 530058918e
commit 441ac21053
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}