From bfb26a9402e77165a819388479399ef59e17582d Mon Sep 17 00:00:00 2001 From: ajnart Date: Sat, 21 May 2022 01:26:55 +0200 Subject: [PATCH] :ambulance: Fix API url for services --- src/components/modules/calendar/CalendarModule.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modules/calendar/CalendarModule.tsx b/src/components/modules/calendar/CalendarModule.tsx index 5872539cd..4c8f825ee 100644 --- a/src/components/modules/calendar/CalendarModule.tsx +++ b/src/components/modules/calendar/CalendarModule.tsx @@ -34,7 +34,7 @@ export default function CalendarComponent(props: any) { if (sonarrService && sonarrService.apiKey) { const baseUrl = new URL(sonarrService.url).origin; fetch( - `${baseUrl}api/calendar?apikey=${sonarrService?.apiKey}&end=${nextMonth}` + `${baseUrl}/api/calendar?apikey=${sonarrService?.apiKey}&end=${nextMonth}` ).then((response) => { response.ok && response.json().then((data) => { @@ -52,7 +52,7 @@ export default function CalendarComponent(props: any) { } if (radarrService && radarrService.apiKey) { const baseUrl = new URL(radarrService.url).origin; - fetch(`${baseUrl}api/v3/calendar?apikey=${radarrService?.apiKey}&end=${nextMonth}`).then( + fetch(`${baseUrl}/api/v3/calendar?apikey=${radarrService?.apiKey}&end=${nextMonth}`).then( (response) => { response.ok && response.json().then((data) => {