Skip to content

NVR with realtime local object detection for IP cameras

fix: preserve other cameras' volume when adjusting one (#22508)

ryzendigo2ace8d36702a
diff --git a/web/src/views/live/LiveDashboardView.tsx b/web/src/views/live/LiveDashboardView.tsx
index a25741f634..716ffed041 100644
--- a/web/src/views/live/LiveDashboardView.tsx
+++ b/web/src/views/live/LiveDashboardView.tsx
@@ -570,9 +570,10 @@ export default function LiveDashboardView({
toggleStats={() => toggleStats(camera.name)}
volumeState={volumeStates[camera.name] ?? 1}
setVolumeState={(value) =>
- setVolumeStates({
+ setVolumeStates((prev) => ({
+ ...prev,
[camera.name]: value,
- })
+ }))
}
muteAll={muteAll}
unmuteAll={unmuteAll}