Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit e9a0edb

Browse files
committed
fix(plugins/plugin-client-common): After reordering blocks, saving notebook does not reflect new block order.
This was due to a leftover sort of the blocks on snapshot. Fixes #5738
1 parent 4caff9c commit e9a0edb

File tree

1 file changed

+0
-3
lines changed
  • plugins/plugin-core-support/src/lib/cmds

1 file changed

+0
-3
lines changed

plugins/plugin-core-support/src/lib/cmds/replay.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,6 @@ export default function(registrar: Registrar) {
464464
nSplits++
465465

466466
if (nSplits === nSnapshotable) {
467-
// sort blocks by startTime
468-
blocks.sort((a, b) => (a.startTime > b.startTime ? 1 : -1))
469-
470467
// if needed, we could optimize this by recording per
471468
// blocksInSplit, as they arrive
472469
const clicks = parsedOptions.shallow ? undefined : await new FlightRecorder(tab, blocks).record()

0 commit comments

Comments
 (0)