forked from Github/frigate
Tracked object metadata changes (#15055)
* add enum and change topic name * frontend renaming * docs * only display sublabel score if it it exists * remove debug print
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {
|
||||
useEmbeddingsReindexProgress,
|
||||
useEventUpdate,
|
||||
useTrackedObjectUpdate,
|
||||
useModelState,
|
||||
} from "@/api/ws";
|
||||
import ActivityIndicator from "@/components/indicators/activity-indicator";
|
||||
@@ -227,15 +227,15 @@ export default function Explore() {
|
||||
|
||||
// mutation and revalidation
|
||||
|
||||
const eventUpdate = useEventUpdate();
|
||||
const trackedObjectUpdate = useTrackedObjectUpdate();
|
||||
|
||||
useEffect(() => {
|
||||
if (eventUpdate) {
|
||||
if (trackedObjectUpdate) {
|
||||
mutate();
|
||||
}
|
||||
// mutate / revalidate when event description updates come in
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [eventUpdate]);
|
||||
}, [trackedObjectUpdate]);
|
||||
|
||||
// embeddings reindex progress
|
||||
|
||||
|
||||
Reference in New Issue
Block a user