mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02: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);
|
const [firstLoad, setFirstLoad] = useState(true);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (previewFrames != undefined && previewFrames.length == 0) {
|
||||||
|
setFirstLoad(false);
|
||||||
|
}
|
||||||
|
}, [previewFrames]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!controller) {
|
if (!controller) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user