From bf944c31692bbd4de682c891ee5423e00fab7fc2 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 7 Mar 2022 12:32:54 -0800 Subject: [PATCH] Fix problem on nodes marked as collapted. --- .../mindplot/src/components/persistence/XMLSerializerTango.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mindplot/src/components/persistence/XMLSerializerTango.ts b/packages/mindplot/src/components/persistence/XMLSerializerTango.ts index b7551016..fbd98485 100644 --- a/packages/mindplot/src/components/persistence/XMLSerializerTango.ts +++ b/packages/mindplot/src/components/persistence/XMLSerializerTango.ts @@ -106,7 +106,7 @@ class XMLSerializerTango implements XMLMindmapSerializer { } } - if (topic.areChildrenShrunken() && topic.getType() !== 'CentralTopic') { + if ((topic.areChildrenShrunken() && topic.getChildren().length > 0) && topic.getType() !== 'CentralTopic') { parentTopic.setAttribute('shrink', 'true'); }