From 9ea1b9b27799d66f8aca56272e1390b8f0f14160 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Tue, 26 Nov 2024 21:44:04 +0600 Subject: [PATCH] fix: reset the sizes --- scripts/migrate-editor-roadmap.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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: {