diff --git a/editor/src/graph.js b/editor/src/graph.js index 57e35a0..a817738 100644 --- a/editor/src/graph.js +++ b/editor/src/graph.js @@ -49,6 +49,7 @@ function wikiGraph(selector, options) { if (props.nodes.length) { let nodeId = props.nodes[0] let node = nodes.get(nodeId) + // TODO: Reload directly in this same page window.location.href = '/edit/' + node.label } }) diff --git a/main.go b/main.go index c096ff0..1050944 100644 --- a/main.go +++ b/main.go @@ -486,7 +486,7 @@ func getPageBase(repo PagesRepository, t time.Time) pageBaseInfo { pageBase := pageBaseInfo{ BaseURL: clientID, RedirectURI: redirectURI, - Days: prepareDays(mp, t), + Days: prepareDays(repo, t), Month: t.Month().String(), Year: t.Year(), } @@ -1177,7 +1177,7 @@ func main() { // Keep a copy of the nodes, buildFromCenter appends to the nodeMap var nodes []string - for k, _ := range gb.nodeMap { + for k := range gb.nodeMap { nodes = append(nodes, k) }