fix selecting camera group in cameras filter button

This commit is contained in:
Josh Hawkins 2024-09-26 15:22:21 -05:00
parent 05e82c6167
commit 4fc1e5a2a1

View File

@ -112,7 +112,10 @@ export function CamerasFilterButton({
<div <div
key={name} key={name}
className="w-full cursor-pointer rounded-lg px-2 py-0.5 text-sm capitalize text-primary hover:bg-muted" className="w-full cursor-pointer rounded-lg px-2 py-0.5 text-sm capitalize text-primary hover:bg-muted"
onClick={() => setCurrentCameras([...conf.cameras])} onClick={() => {
setAllCamerasSelected(false);
setCurrentCameras([...conf.cameras]);
}}
> >
{name} {name}
</div> </div>