mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
Fix CalendarModule.tsx
Fix no content showing when 1 of the same service is down.
This commit is contained in:
@@ -73,6 +73,8 @@ export default function CalendarComponent(props: any) {
|
|||||||
sonarrServices.map((service) =>
|
sonarrServices.map((service) =>
|
||||||
getMedias(service, 'sonarr').then((res) => {
|
getMedias(service, 'sonarr').then((res) => {
|
||||||
currentSonarrMedias.push(...res.data);
|
currentSonarrMedias.push(...res.data);
|
||||||
|
}).catch(() => {
|
||||||
|
currentSonarrMedias.push([]);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
).then(() => {
|
).then(() => {
|
||||||
@@ -83,6 +85,8 @@ export default function CalendarComponent(props: any) {
|
|||||||
radarrServices.map((service) =>
|
radarrServices.map((service) =>
|
||||||
getMedias(service, 'radarr').then((res) => {
|
getMedias(service, 'radarr').then((res) => {
|
||||||
currentRadarrMedias.push(...res.data);
|
currentRadarrMedias.push(...res.data);
|
||||||
|
}).catch(() => {
|
||||||
|
currentRadarrMedias.push([]);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
).then(() => {
|
).then(() => {
|
||||||
@@ -93,6 +97,8 @@ export default function CalendarComponent(props: any) {
|
|||||||
lidarrServices.map((service) =>
|
lidarrServices.map((service) =>
|
||||||
getMedias(service, 'lidarr').then((res) => {
|
getMedias(service, 'lidarr').then((res) => {
|
||||||
currentLidarrMedias.push(...res.data);
|
currentLidarrMedias.push(...res.data);
|
||||||
|
}).catch(() => {
|
||||||
|
currentLidarrMedias.push([]);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
).then(() => {
|
).then(() => {
|
||||||
@@ -103,6 +109,8 @@ export default function CalendarComponent(props: any) {
|
|||||||
readarrServices.map((service) =>
|
readarrServices.map((service) =>
|
||||||
getMedias(service, 'readarr').then((res) => {
|
getMedias(service, 'readarr').then((res) => {
|
||||||
currentReadarrMedias.push(...res.data);
|
currentReadarrMedias.push(...res.data);
|
||||||
|
}).catch(() => {
|
||||||
|
currentReadarrMedias.push([]);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
).then(() => {
|
).then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user