[TASK] Remove outdated link filter
This commit is contained in:
parent
a9630ffa78
commit
b3ef2460b3
@ -12,9 +12,7 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'],
|
|||||||
for (var i = 0; i < data.length; ++i) {
|
for (var i = 0; i < data.length; ++i) {
|
||||||
nodes = nodes.concat(data[i].nodes);
|
nodes = nodes.concat(data[i].nodes);
|
||||||
timestamp = data[i].timestamp;
|
timestamp = data[i].timestamp;
|
||||||
links = links.concat(data[i].links.filter(function (d) {
|
links = links.concat(data[i].links);
|
||||||
return d.source !== undefined;
|
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nodes.forEach(function (node) {
|
nodes.forEach(function (node) {
|
||||||
|
Loading…
Reference in New Issue
Block a user