I am getting a JS error in the console when launching my WebAppBuilder based application. Doesn't seem to affect anything but makes me wonder if there is an issue with data in my webmap:
init.js:114 TypeError: Cannot read property 'toLowerCase' of undefined
at Object.<anonymous> (LayerInfoForDefault.js?wab_dv=2.9:619)
// Todo... improve the getPopupInfo interface.
_getDefaultPopupInfo: function(object) {
var defaultPopupInfo = this._getCustomPopupInfo(object);
if(defaultPopupInfo) {
defaultPopupInfo.fieldInfos = array.filter(defaultPopupInfo.fieldInfos, lang.hitch(this, function(fieldInfo) {
var result;
if(fieldInfo.fieldName.toLowerCase() !== object.objectIdField.toLowerCase() &&
fieldInfo.fieldName.toLowerCase() !== "globalid" &&
fieldInfo.fieldName.toLowerCase() !== "shape") {
result = true;
} else {
result = false;
}
return result;
}));
}
return defaultPopupInfo;
},
Has anyone seen this issue before?
Thanks in advance.
M