From eb3f50c9f0bd9651cfe2b3ff53dafebc613f17a9 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Sun, 6 Jun 2021 23:12:36 -0400 Subject: [PATCH] add default to reducer --- web/src/components/RecordingPlaylist.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/RecordingPlaylist.jsx b/web/src/components/RecordingPlaylist.jsx index 32275a9e8..69efb94cc 100644 --- a/web/src/components/RecordingPlaylist.jsx +++ b/web/src/components/RecordingPlaylist.jsx @@ -88,7 +88,7 @@ export function EventCard({ camera, event, delay }) { const position = differenceInSeconds(start, startOfHour(start)); const offset = Object.entries(delay) .map(([p, d]) => (position > p ? d : 0)) - .reduce((p, c) => p + c); + .reduce((p, c) => p + c, 0); const seconds = Math.max(position - offset - 10, 0); return (