YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: null-safe navigateToSearchResultRef.current calls in use-scroll-zoom
Louis Beaumontd102913df68a
diff --git a/apps/screenpipe-app-tauri/components/rewind/hooks/use-scroll-zoom.ts b/apps/screenpipe-app-tauri/components/rewind/hooks/use-scroll-zoom.tsindex 788eb5ab6..7aa2d9da0 100644--- a/apps/screenpipe-app-tauri/components/rewind/hooks/use-scroll-zoom.ts+++ b/apps/screenpipe-app-tauri/components/rewind/hooks/use-scroll-zoom.ts@@ -259,13 +259,13 @@ export function useScrollZoom(opts: {const direction = Math.sign(deltaY);if (inSearchReviewMode) {if (direction > 0 && searchResultIndex < searchResultsCount - 1) {- navigateToSearchResultRef.current(searchResultIndex + 1);+ navigateToSearchResultRef.current?.(searchResultIndex + 1);} else if (direction < 0 && searchResultIndex > 0) {- navigateToSearchResultRef.current(searchResultIndex - 1);+ navigateToSearchResultRef.current?.(searchResultIndex - 1);}} else {// Enter review mode: scroll down → first result, scroll up → last result- navigateToSearchResultRef.current(direction > 0 ? 0 : searchResultsCount - 1);+ navigateToSearchResultRef.current?.(direction > 0 ? 0 : searchResultsCount - 1);}return;}