Get graph from api for new map
This commit is contained in:
parent
ec3ed26fa6
commit
53c70e8042
|
@ -109,8 +109,9 @@ drag = simulation => {
|
||||||
.on("end", dragended);
|
.on("end", dragended);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let path_tokens = window.location.pathname.split("/")
|
||||||
d3.json("/api/v2/crawlrun/live/?with_graph").then((data) => {
|
let elem = path_tokens[path_tokens.length - 2]
|
||||||
|
d3.json("/api/v2/crawlrun/" + elem + "/?with_graph").then((data) => {
|
||||||
// Links data join
|
// Links data join
|
||||||
data = data.graph
|
data = data.graph
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue