Entities graph - info panel is updated after data refresh

Change-Id: Ifa3550f0716b1085c37d1038d0defc3d9d7448ee
This commit is contained in:
Alon Heller 2017-03-27 14:02:50 +03:00
parent 3da7693849
commit f700cc9766

View File

@ -496,21 +496,18 @@
return icon
});
}
// we need to updated the selected info
if (_this.selectedItem && _this.selectedItem.vitrage_id && _this.selectedItem.vitrage_id !== '') {
for (var i=0; i < data.nodes.length; i++) {
var val = data.nodes[i];
if (val && val.vitrage_id && val.vitrage_id == _this.selectedItem.vitrage_id) {
_this.selectedItem = val;
break;
}
}
}
}