Skip to content

fix: avoid mutating subtask array when sorting in board generation - #896

Open
pxmpsdev wants to merge 1 commit into
MrLesk:mainfrom
pxmpsdev:fix/board-subsort-immutable
Open

fix: avoid mutating subtask array when sorting in board generation#896
pxmpsdev wants to merge 1 commit into
MrLesk:mainfrom
pxmpsdev:fix/board-subsort-immutable

Conversation

@pxmpsdev

@pxmpsdev pxmpsdev commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Consistent with prior items fix: src/board.ts:131 mutates children map via subs.sort(). Use [...subs].sort() with sortedSubs to keep render pure.\n\nVerified: bunx tsc --noEmit ok, bun run check 369 files ok, board tests 8 pass. Small focused fix.

- src/board.ts: use [...subs].sort() with sortedSubs to avoid mutating
  children map array (consistent with prior items sort fix)

Verified: bunx tsc --noEmit (0), bun run check (369 files OK), board tests 8 pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant