mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 17:12:16 +03:00
Miscellaneous Fixes (#22890)
CI / AMD64 Build (push) Has been cancelled
CI / ARM Build (push) Has been cancelled
CI / Jetson Jetpack 6 (push) Has been cancelled
CI / AMD64 Extra Build (push) Has been cancelled
CI / ARM Extra Build (push) Has been cancelled
CI / Synaptics Build (push) Has been cancelled
CI / Assemble and push default build (push) Has been cancelled
CI / AMD64 Build (push) Has been cancelled
CI / ARM Build (push) Has been cancelled
CI / Jetson Jetpack 6 (push) Has been cancelled
CI / AMD64 Extra Build (push) Has been cancelled
CI / ARM Extra Build (push) Has been cancelled
CI / Synaptics Build (push) Has been cancelled
CI / Assemble and push default build (push) Has been cancelled
* only link to profile settings in status bar for admin users * use hasFullCameraAccess for group filtering * add custom export args to record docs * update recordings docs * prevent review WS handler from poisoning SWR cache before initial fetch completes
This commit is contained in:
@@ -334,7 +334,7 @@ export default function Events() {
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (reviewUpdate?.type === "end") {
|
||||
if (reviewUpdate?.type === "end" && reviews) {
|
||||
updateSegments(
|
||||
(data) => {
|
||||
if (!data) return data;
|
||||
@@ -348,6 +348,9 @@ export default function Events() {
|
||||
new Map(prev).set(reviewUpdate.after.id, reviewUpdate.after),
|
||||
);
|
||||
}
|
||||
// reviews is intentionally excluded - only used to guard against
|
||||
// updating the SWR cache before data has loaded
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [reviewUpdate, updateSegments]);
|
||||
|
||||
const currentItems = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user