From e03da83ccaaf8d11e14be93ada183dd51812c434 Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 6 Jun 2026 12:55:51 +0530 Subject: [PATCH] refactor(replay-ui): export clampIndex for testing --- replay-ui/src/hooks/useStep.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/replay-ui/src/hooks/useStep.ts b/replay-ui/src/hooks/useStep.ts index a9e3ecf..2ee1121 100644 --- a/replay-ui/src/hooks/useStep.ts +++ b/replay-ui/src/hooks/useStep.ts @@ -32,7 +32,7 @@ export function useStep(maxIndex: number | undefined): UseStepResult { return { runId, stepIndex: clamped, goTo }; } -function clampIndex(index: number, maxIndex: number | undefined): number { +export function clampIndex(index: number, maxIndex: number | undefined): number { if (index < 1) { return 1; }