mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-18 00:16:41 +01:00
fix case where camera is disabled and has no previews (#12066)
* fix case where camera is disabled and has no previews * Maintain slow loading behavior
This commit is contained in:
parent
d01457e64d
commit
e9cdef9f25
@ -489,6 +489,12 @@ function PreviewFramesPlayer({
|
||||
|
||||
const [firstLoad, setFirstLoad] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
if (previewFrames != undefined && previewFrames.length == 0) {
|
||||
setFirstLoad(false);
|
||||
}
|
||||
}, [previewFrames]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!controller) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user