From 2a0a582d7bc66c5d05fb6404c848c127adc6b2c0 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Tue, 17 Aug 2021 22:38:37 +0200 Subject: [PATCH] Some cleanup --- editor/src/graph.js | 1 + main.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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) }