From 256ce2c5c0617d3f59817a4c6308161ce22c7ba2 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Mon, 11 Oct 2021 02:02:33 +0200 Subject: chore: merge and build preview --- pages/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'pages/index.tsx') diff --git a/pages/index.tsx b/pages/index.tsx index 8bc42a0..05142b2 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -723,10 +723,6 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { } = props const { dailyDir, roamDir } = variables - // react-force-graph does not track window size - // https://github.com/vasturiano/react-force-graph/issues/233 - // does not work below a certain width - const [windowWidth, windowHeight] = useWindowSize() const [hoverNode, setHoverNode] = useState(null) @@ -738,6 +734,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { switch (click) { case mouse.preview: { setPreviewNode(node) + break } case mouse.local: { handleLocal(node, behavior.localSame) -- cgit v1.2.3