Fix legacy loading ...

This commit is contained in:
Paulo Gustavo Veiga 2023-01-02 20:47:36 -08:00
parent 885c876d53
commit fb90c876e4

View File

@ -216,8 +216,10 @@ class XMLSerializerBeta implements XMLMindmapSerializer {
topic.setOrder(parseInt(order, 10));
}
const shape = domElem.getAttribute('shape');
let shape = domElem.getAttribute('shape');
if ($defined(shape)) {
// Hack for legacy mapping loading ...
shape = shape === 'rectagle' ? 'rectangle' : shape;
topic.setShapeType(shape);
}