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()), );