From fec6698fa323a68da476ca5f7386ab60234e1725 Mon Sep 17 00:00:00 2001 From: Juan Carlos Farah Date: Thu, 14 Sep 2023 09:02:55 +0200 Subject: [PATCH] fix: issue with layout --- src/App.tsx | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 0b8f388..8906125 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -90,16 +90,8 @@ const App = () => { const [minWeight, setMinWeight] = useState(Math.min(...weights)); const [maxWeight, setMaxWeight] = useState(Math.max(...weights)); - useEffect(() => { - // anything in here is fired on component mount. - - return () => { - // anything in here is fired on component unmount. - }; - }, []); - - // const layout = { name: 'fcose' }; - const layout = { name: 'cola' }; + const layout = { name: 'fcose' }; + // const layout = { name: 'cola' }; // const layout = { name: 'random' }; // const layout = { name: 'cose' }; // const layout = { name: 'circle' }; @@ -240,14 +232,14 @@ const App = () => { .update(); } - if ( - settings[SHOW_NODES_KEY] || - settings[SHOW_PARENT_NODES_KEY] || - settings[SHOW_EDGES_KEY] - ) { - const l = cyHandle.layout(layout); - l.run(); - } + // if ( + // settings[SHOW_NODES_KEY] || + // settings[SHOW_PARENT_NODES_KEY] || + // settings[SHOW_EDGES_KEY] + // ) { + // const l = cyHandle.layout(layout); + // l.run(); + // } } return () => {