diff --git a/src/components/modules/calendar/CalendarModule.tsx b/src/components/modules/calendar/CalendarModule.tsx
index ad5edc87a..4c8d8bd6f 100644
--- a/src/components/modules/calendar/CalendarModule.tsx
+++ b/src/components/modules/calendar/CalendarModule.tsx
@@ -104,22 +104,22 @@ export default function CalendarComponent(props: any) {
}
if (readarrService && readarrService.apiKey) {
const baseUrl = new URL(readarrService.url).origin;
- fetch(`${baseUrl}/api/v1/calendar?apikey=${readarrService?.apiKey}&end=${nextMonth}&start=${lastMonth}`).then(
- (response) => {
- response.ok &&
- response.json().then((data) => {
- setReadarrMedias(data);
- showNotification({
- title: 'Readarr',
- icon: ,
- color: 'green',
- autoClose: 1500,
- radius: 'md',
- message: `Loaded ${data.length} releases`,
- });
+ fetch(
+ `${baseUrl}/api/v1/calendar?apikey=${readarrService?.apiKey}&end=${nextMonth}&start=${lastMonth}`
+ ).then((response) => {
+ response.ok &&
+ response.json().then((data) => {
+ setReadarrMedias(data);
+ showNotification({
+ title: 'Readarr',
+ icon: ,
+ color: 'green',
+ autoClose: 1500,
+ radius: 'md',
+ message: `Loaded ${data.length} releases`,
});
- }
- );
+ });
+ });
}
}, [config.services]);
diff --git a/src/components/modules/downloads/TotalDownloadsModule.tsx b/src/components/modules/downloads/TotalDownloadsModule.tsx
index 4c40cc5ab..8d1757f62 100644
--- a/src/components/modules/downloads/TotalDownloadsModule.tsx
+++ b/src/components/modules/downloads/TotalDownloadsModule.tsx
@@ -116,7 +116,6 @@ export default function TotalDownloadsComponent() {
const theme = useMantineTheme();
// Load the last 10 values from the history
const history = torrentHistory.slice(-10);
- console.log(history);
const chartDataUp = history.map((load, i) => ({
x: load.x,
y: load.up,
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 345066623..9ae8c33ff 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -6,8 +6,6 @@ import LoadConfigComponent from '../components/Config/LoadConfig';
import { Config } from '../tools/types';
import { useConfig } from '../tools/state';
import { migrateToIdConfig } from '../tools/migrate';
-import { ModuleWrapper } from '../components/modules/moduleWrapper';
-import { DownloadsModule } from '../components/modules';
import { getConfig } from '../tools/getConfig';
export async function getServerSideProps({