diff --git a/scripts/migrate-editor-roadmap.ts b/scripts/migrate-editor-roadmap.ts index 96934a228..8389951cf 100644 --- a/scripts/migrate-editor-roadmap.ts +++ b/scripts/migrate-editor-roadmap.ts @@ -46,6 +46,13 @@ for (const roadmapId of editorRoadmapIds) { const width = node?.width || node?.style?.width || 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 { ...node, measured: {