From dd462dd03114b57b5ede13a1435585a017af3406 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Mon, 10 Mar 2025 18:20:51 +0600 Subject: [PATCH] fix: remove hacky code --- scripts/migrate-editor-roadmap.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scripts/migrate-editor-roadmap.ts b/scripts/migrate-editor-roadmap.ts index 0dac06054..47012f731 100644 --- a/scripts/migrate-editor-roadmap.ts +++ b/scripts/migrate-editor-roadmap.ts @@ -46,13 +46,6 @@ 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; - } - const ADDITIONAL_WIDTH = 1; // adding one `1px` in width to avoid the node to be cut in half // this is a quick fix to avoid the issue