Skip to content

Commit 960b89e

Browse files
committed
fix: first block dragged from flyout will have same id (#7788)
(cherry picked from commit 49f65a2)
1 parent dccedbf commit 960b89e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

core/flyout_base.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,8 +1235,7 @@ export abstract class Flyout
12351235
}
12361236

12371237
// Clone the block.
1238-
// TODO(#7432): Add a saveIds parameter to `save`.
1239-
const json = blocks.save(oldBlock, {saveIds: false}) as blocks.State;
1238+
const json = blocks.save(oldBlock) as blocks.State;
12401239
// Normallly this resizes leading to weird jumps. Save it for terminateDrag.
12411240
targetWorkspace.setResizesEnabled(false);
12421241
const block = blocks.append(json, targetWorkspace) as BlockSvg;

0 commit comments

Comments
 (0)