Return zeros if summary is unavailable

This commit is contained in:
Josh Hawkins 2024-06-12 13:23:54 -05:00
parent b95a2a1823
commit 8d4d4a561e

View File

@ -103,7 +103,7 @@ export default function EventView({
}
if (!summary) {
return { alert: -1, detection: -1, significant_motion: -1 };
return { alert: 0, detection: 0, significant_motion: 0 };
}
if (filter?.showReviewed == 1) {