summaryrefslogtreecommitdiff
path: root/src/views/Graph.js
diff options
context:
space:
mode:
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);