Set the correct view depending on media filter selections.
This commit is contained in:
@@ -25,7 +25,8 @@ export const getRecordingTitle = (
|
||||
cameraConfig: CameraConfig,
|
||||
recording: FrigateRecording,
|
||||
): string => {
|
||||
return `${prettifyTitle(cameraConfig.frigate.camera_name)} ${formatDateAndTime(
|
||||
const cameraName = prettifyTitle(cameraConfig.frigate.camera_name ?? '');
|
||||
return `${cameraName ? `${cameraName} ` : ''}${formatDateAndTime(
|
||||
recording.startTime,
|
||||
)}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user