From 4dbbefa0c313d5993fdf8a103bb8d59cebc2e74c Mon Sep 17 00:00:00 2001 From: Juan Carlos Farah Date: Fri, 20 Oct 2023 09:05:45 +0200 Subject: [PATCH] fix: fix issue with sizing nodes --- src/Sizer.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Sizer.tsx b/src/Sizer.tsx index c70d073..c74d2d6 100644 --- a/src/Sizer.tsx +++ b/src/Sizer.tsx @@ -11,7 +11,7 @@ import Cytoscape from 'cytoscape'; import { SHOW_EDGES_KEY, SHOW_LABELS_KEY, - SHOW_PARENT_NODES_KEY, + SHOW_NODES_KEY, SettingsProps, } from './View'; @@ -133,8 +133,7 @@ export default function Sizer({ }, [fontSize, nodeSize, edgeSize, cy, settings, filters]); const edgesDisabled = (n: number) => !settings[SHOW_EDGES_KEY] || n === 0; - const nodesDisabled = - !settings[SHOW_PARENT_NODES_KEY] && settings[SHOW_LABELS_KEY]; + const nodesDisabled = !settings[SHOW_NODES_KEY] || settings[SHOW_LABELS_KEY]; const labelsDisabled = !settings[SHOW_LABELS_KEY]; return (