forked from Github/frigate
Catch case where recording is not enabled (#4069)
* Catch case where recording is not enabled * Add test for Record to catch this * Add test for Record to catch this
This commit is contained in:
@@ -54,6 +54,10 @@ export default function Recording({ camera, date, hour = '00', minute = '00', se
|
||||
|
||||
const selectedDayRecordingData = recordingsSummary.find((s) => !date || s.day === date);
|
||||
|
||||
if (!selectedDayRecordingData) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const [year, month, day] = selectedDayRecordingData.day.split('-');
|
||||
return selectedDayRecordingData.hours
|
||||
.map((h) => {
|
||||
|
||||
Reference in New Issue
Block a user