Commit 982d5feb authored by Maxym Borodenko's avatar Maxym Borodenko Committed by Matija Obreza

Fixed JS errors in Explorer

parent 02d3c55e
......@@ -245,9 +245,11 @@ var GenesysFilterUtil = {
existInJson : function(input, key, jsonData) {
var array = jsonData[key];
for (var i = array.length - 1; i >= 0; i--) {
if (JSON.stringify(array[i]) === JSON.stringify(input)) {
return true;
if(array !== undefined) {
for (var i = array.length - 1; i >= 0; i--) {
if (JSON.stringify(array[i]) === JSON.stringify(input)) {
return true;
}
}
}
return false;
......
......@@ -990,7 +990,7 @@
</c:when>
<c:when test="${col eq 'orgCty'}">
$("<p/>", {
text: messages['geo.iso3166-3.' + pagedData.content[i].orgCty.iso3]
text: pagedData.content[i].orgCty !== null ? messages['geo.iso3166-3.' + pagedData.content[i].orgCty.iso3] : ""
}).appendTo($("<td/>", {
'class': "notimportant <c:if test='${i.count ge 2}'>hidden-xs</c:if> <c:if test='${i.count gt 2}'>hidden-sm</c:if>"
}).appendTo(row));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment