From db4052dcb658fa1d8955c0d3933f69f064ed0503 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 27 Dec 2021 12:32:55 -0800 Subject: [PATCH] Start adding SVG icons replacement --- packages/mindplot/src/components/Topic.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mindplot/src/components/Topic.js b/packages/mindplot/src/components/Topic.js index fbabd451..2ce4f2b4 100644 --- a/packages/mindplot/src/components/Topic.js +++ b/packages/mindplot/src/components/Topic.js @@ -972,8 +972,7 @@ class Topic extends NodeGraph { const targetParent = targetTopic.getModel().getParent(); const sourceParent = sourceTopic.getModel().getParent(); - relationship.setVisibility( - value && + relationship.setVisibility(value && (targetParent == null || !targetParent.areChildrenShrunken()) && (sourceParent == null || !sourceParent.areChildrenShrunken()), );