summaryrefslogtreecommitdiff
path: root/src/views/Graph.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-10-06 15:27:31 +0200
committerJules Laplace <julescarbon@gmail.com>2021-10-06 15:27:31 +0200
commit77cfa255274fdcdf822e836c7ea98e769bcb865d (patch)
tree872e272eaeeacb0c48724826b14fed2bdd11e093 /src/views/Graph.js
parent995c5c4b3769f8402092aba1777d29ebcc259230 (diff)
mobile
Diffstat (limited to 'src/views/Graph.js')
-rw-r--r--src/views/Graph.js16
1 files changed, 8 insertions, 8 deletions
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);