Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

use prev when calculating segmentIndex

Brendan Allan4886d32a63f2
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
index dc23e72a3..b25c494b5 100644
--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx
+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx
@@ -1375,7 +1375,7 @@ export function ConfigSidebar() {
return value().segment.start;
}, 0);
- const segmentIndex = createMemo<number>(() => {
+ const segmentIndex = createMemo<number>((prev) => {
if (history.isPaused()) return prev;
const st = start();