From 4f33f4f6642071f68ac798c78dd9c09c40330ef9 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:43:00 -0500 Subject: [PATCH] restream tweak --- web/src/components/settings/Step2StreamConfig.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/components/settings/Step2StreamConfig.tsx b/web/src/components/settings/Step2StreamConfig.tsx index 4f0d938d0..c33c35d6f 100644 --- a/web/src/components/settings/Step2StreamConfig.tsx +++ b/web/src/components/settings/Step2StreamConfig.tsx @@ -190,18 +190,18 @@ export default function Step2StreamConfig({ [updateStream, t], ); - const setLiveViewStream = useCallback( + const setRestream = useCallback( (streamId: string) => { - const currentIds = wizardData.liveViewStreamIds || []; + const currentIds = wizardData.restreamIds || []; const isSelected = currentIds.includes(streamId); const newIds = isSelected ? currentIds.filter((id) => id !== streamId) : [...currentIds, streamId]; onUpdate({ - liveViewStreamIds: newIds, + restreamIds: newIds, }); }, - [wizardData.liveViewStreamIds, onUpdate], + [wizardData.restreamIds, onUpdate], ); const hasDetectRole = streams.some((s) => s.roles.includes("detect")); @@ -348,10 +348,10 @@ export default function Step2StreamConfig({ {t("cameraWizard.step2.go2rtc")} setLiveViewStream(stream.id)} + onCheckedChange={() => setRestream(stream.id)} />