From 7913e630d6a878fb0ebc1bfc979049f3f450bbf0 Mon Sep 17 00:00:00 2001 From: Ty Balascio Date: Fri, 25 Sep 2026 07:45:25 -0700 Subject: [PATCH] fix(fe): subscribe to capture-session store in components (was reading the store object) `session.state` is a Svelte store; `$: state = session.state` bound the store object (not its value), so state.capture was undefined and cap.k threw on mount. Bind a local const to the store and use the $ prefix ($stateStore), and use get() in App.onPhotosReady. Verified in Chromium: hero -> batch -> sample uploads show thumbs. --- frontend/src/App.svelte | 4 ++-- frontend/src/capture/PhotosReady.svelte | 3 ++- frontend/src/capture/SessionCapture.svelte | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 8257855..7983fbf 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -1,6 +1,6 @@