From 43d1b12d1710556df51b89cfe2cb261264659fed Mon Sep 17 00:00:00 2001 From: Tuan Cao Date: Mon, 18 Apr 2022 17:47:15 +0700 Subject: [PATCH] ... --- components/Graph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Graph.js b/components/Graph.js index e01ce4e..d87ff82 100644 --- a/components/Graph.js +++ b/components/Graph.js @@ -96,8 +96,8 @@ function Graph({graph}) { var node = evt.target; let nodeData = node.data(); if (typeof nodeData.id === 'string') { - router.path = '/note/' + node.data().id - router.reload() + const path = '/note/' + node.data().id + router.push(path) } }); }}