mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
Fix random 0
This commit is contained in:
parent
1e784ea66c
commit
4ed00f22c5
@ -366,7 +366,7 @@ function ObjectDetailsTab({
|
|||||||
|
|
||||||
const snapScore = useMemo(() => {
|
const snapScore = useMemo(() => {
|
||||||
if (!search?.has_snapshot) {
|
if (!search?.has_snapshot) {
|
||||||
return 0;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const value = search.data.score ?? search.score ?? 0;
|
const value = search.data.score ?? search.score ?? 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user