refactor(replay-ui): export clampIndex for testing

This commit is contained in:
pj committed 2026-06-06 13:07:43 +05:30
1 parent e26100acf5
commit e03da83cca
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}