perf: Variety of small type and performance fixes (#2367)

This commit is contained in:
Dermot Duffy authored and GitHub committed 2026-02-22 15:02:14 -08:00
1 parent 0f8c758d38
commit 497e6e88a0
10 files changed
+82 -53

No files matched your search

+2 -4
View File
@@ -155,11 +155,9 @@ export const getReviewThumbnailURL = (
* Get generic review severity.
*/
export const getReviewSeverity = (severity: FrigateReviewSeverity): Severity => {
// Frigate severities: 'alert' -> 'high', 'detection' -> 'medium'.
if (severity === 'alert') {
return 'high';
}
if (severity === 'detection') {
return 'medium';
}
return 'low';
return 'medium';
};