From 77cfa255274fdcdf822e836c7ea98e769bcb865d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 6 Oct 2021 15:27:31 +0200 Subject: mobile --- src/views/Graph.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/views/Graph.js') diff --git a/src/views/Graph.js b/src/views/Graph.js index 21972e8..0920f76 100644 --- a/src/views/Graph.js +++ b/src/views/Graph.js @@ -23,16 +23,16 @@ export default function Graph({ db }) { /** Build the graph */ useEffect(() => { - setGraph( - buildGraph({ - db, - handlers: { - click: handleClick, - }, - }) - ); + const graph = buildGraph({ + db, + handlers: { + click: handleClick, + }, + }); + setGraph(graph); setTimeout(() => { setIntroCurtainDone(true); + graph.onLoad(); setTimeout(() => { setIntroDone(true); }, 4000); -- cgit v1.2.3-70-g09d2