fix: reset the sizes

feat/xyflow
Arik Chakma 2 months ago
parent aa40efe278
commit 9ea1b9b277
  1. 7
      scripts/migrate-editor-roadmap.ts

@ -46,6 +46,13 @@ for (const roadmapId of editorRoadmapIds) {
const width = node?.width || node?.style?.width || 0; const width = node?.width || node?.style?.width || 0;
const height = node?.height || node?.style?.height || 0; const height = node?.height || node?.style?.height || 0;
if (['legend', 'title', 'label', 'linksgroup'].includes(node.type!)) {
delete node?.width;
delete node?.height;
delete node?.style?.width;
delete node?.style?.height;
}
return { return {
...node, ...node,
measured: { measured: {

Loading…
Cancel
Save