Fix score in search details dialog for old events (#14541)

This commit is contained in:
Josh Hawkins 2024-10-23 10:31:20 -05:00 committed by GitHub
parent 18824830fd
commit 8fefded8dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -287,7 +287,7 @@ function ObjectDetailsTab({
return 0; return 0;
} }
const value = search.data.top_score; const value = search.data.top_score ?? search.top_score ?? 0;
return Math.round(value * 100); return Math.round(value * 100);
}, [search]); }, [search]);