Skip to content

Commit 69f4d32

Browse files
author
Sebastian Wolf
authored
Merge pull request NagiosEnterprises#714 from scottwilkerson/master
Fix bug where Map doesn't display in IE 11
2 parents cb296f1 + bc3e64f commit 69f4d32

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

html/js/map-directive.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,9 +1106,13 @@ angular.module("mapApp")
11061106
// Next add any hosts in the list as children
11071107
// of the node, if they're not already
11081108
hosts.forEach(function(e) {
1109-
var childIndex = node.children.findIndex(function(s) {
1110-
return s.hostInfo.name === e;
1111-
});
1109+
var childIndex = -1;
1110+
for (let i = 0; i < node.children.length; i++) {
1111+
if (node.children[i].hostInfo.name === e) {
1112+
childIndex = i;
1113+
break;
1114+
}
1115+
}
11121116

11131117
if ($scope.hostList[e]) {
11141118

0 commit comments

Comments
 (0)