From c661dd1c946d12a41b2fc14b0d1deb5e3e3115f3 Mon Sep 17 00:00:00 2001 From: Maribeth Moffatt Date: Mon, 28 Jul 2025 17:35:55 -0400 Subject: [PATCH] fix: dont save ids when copying blocks and comments (#9255) --- core/block_svg.ts | 1 + core/comments/rendered_workspace_comment.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/core/block_svg.ts b/core/block_svg.ts index 49b4a1ee6..1b85d38ce 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -962,6 +962,7 @@ export class BlockSvg blockState: blocks.save(this, { addCoordinates: true, addNextBlocks: false, + saveIds: false, }) as blocks.State, typeCounts: common.getBlockTypeCounts(this, true), }; diff --git a/core/comments/rendered_workspace_comment.ts b/core/comments/rendered_workspace_comment.ts index c4c1f3d4e..49c75e608 100644 --- a/core/comments/rendered_workspace_comment.ts +++ b/core/comments/rendered_workspace_comment.ts @@ -280,6 +280,7 @@ export class RenderedWorkspaceComment paster: WorkspaceCommentPaster.TYPE, commentState: commentSerialization.save(this, { addCoordinates: true, + saveIds: false, }), }; }