mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 06:49:04 +08:00
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) {
|
||||
// _iconList is actually an array as a string: '["foo", "bar"]'
|
||||
return _iconList && _iconList.indexOf(`"${id}"`) >= 0;
|
||||
// TODO: investigate why _iconList is actually an array as a string: '["foo", "bar"]'
|
||||
// in local and a real array in production
|
||||
return _iconList && _iconList.indexOf(id) >= 0;
|
||||
}
|
||||
|
||||
function warnIfMissing(id) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user