FIX: iconList is an array in production (#11308)
This should be investigated further, but hopefully the comment will prevent anyone else to fall in this trap.
This commit is contained in:
parent
0ec62358d9
commit
8aa912c885
|
@ -115,8 +115,9 @@ export function setIconList(iconList) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isExistingIconId(id) {
|
export function isExistingIconId(id) {
|
||||||
// _iconList is actually an array as a string: '["foo", "bar"]'
|
// TODO: investigate why _iconList is actually an array as a string: '["foo", "bar"]'
|
||||||
return _iconList && _iconList.indexOf(`"${id}"`) >= 0;
|
// in local and a real array in production
|
||||||
|
return _iconList && _iconList.indexOf(id) >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function warnIfMissing(id) {
|
function warnIfMissing(id) {
|
||||||
|
|
Loading…
Reference in New Issue