From c258003ec5f85be6a39130ef2187f6af43bddd1c Mon Sep 17 00:00:00 2001 From: ajnart Date: Mon, 30 May 2022 21:43:33 +0200 Subject: [PATCH] :bug: Fixed a bug in the Lidarr image display --- src/components/modules/calendar/MediaDisplay.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modules/calendar/MediaDisplay.tsx b/src/components/modules/calendar/MediaDisplay.tsx index a13a3246c..5c27801bc 100644 --- a/src/components/modules/calendar/MediaDisplay.tsx +++ b/src/components/modules/calendar/MediaDisplay.tsx @@ -33,7 +33,7 @@ function MediaDisplay(props: { media: IMedia }) { /> )} - + {media.title} {media.imdbId && ( @@ -118,7 +118,7 @@ export function LidarrMediaDisplay(props: any) { } const baseUrl = new URL(lidarr.url).origin; // Remove '/' from the end of the lidarr url - const fullLink = `${baseUrl}${poster.url}`; + const fullLink = poster ? `${baseUrl}${poster.url}` : undefined; // Return a movie poster containting the title and the description return (