mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix race where camera change effect sometimes was called after layout building (#11656)
This commit is contained in:
parent
35946d332d
commit
8c325801ef
@ -337,7 +337,10 @@ export default function DraggableGridLayout({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Toaster position="top-center" closeButton={true} />
|
<Toaster position="top-center" closeButton={true} />
|
||||||
{!isGridLayoutLoaded || !currentGridLayout ? (
|
{!isGridLayoutLoaded ||
|
||||||
|
!currentGridLayout ||
|
||||||
|
!isEqual(cameras, currentCameras) ||
|
||||||
|
includeBirdseye !== currentIncludeBirdseye ? (
|
||||||
<div className="mt-2 grid grid-cols-2 gap-2 px-2 md:gap-4 xl:grid-cols-3 3xl:grid-cols-4">
|
<div className="mt-2 grid grid-cols-2 gap-2 px-2 md:gap-4 xl:grid-cols-3 3xl:grid-cols-4">
|
||||||
{includeBirdseye && birdseyeConfig?.enabled && (
|
{includeBirdseye && birdseyeConfig?.enabled && (
|
||||||
<Skeleton className="size-full rounded-lg md:rounded-2xl" />
|
<Skeleton className="size-full rounded-lg md:rounded-2xl" />
|
||||||
|
Loading…
Reference in New Issue
Block a user