Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 7b367ee

Browse files
author
Manuel Proß
committed
fix(web): linting
1 parent bbcee87 commit 7b367ee

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

web/src/app/api/[homepage]/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { notFound, redirect } from "next/navigation";
12
import { getNews } from "@/helpers/homepage";
23
import { SingleType } from "@/types/strapi";
3-
import { notFound, redirect } from "next/navigation";
44

55
export async function GET() {
66
const res = await fetch(`${process.env.CMS_API}/home?populate=deep`, {
@@ -19,7 +19,6 @@ export async function GET() {
1919
try {
2020
homePageData = (await res.json()) as SingleType;
2121
} catch (e) {
22-
console.log(e);
2322
throw new Error("Failed to parse homepage data");
2423
}
2524

web/src/app/layout.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ async function getPageProps() {
3535
const data = await response.json();
3636
return data.data.attributes.items.data;
3737
} catch (error) {
38-
console.error("Error fetching page props:", error);
3938
return [];
4039
}
4140
}
@@ -47,14 +46,12 @@ export default async function RootLayout({ children }: { children: React.ReactNo
4746
try {
4847
pageProps = await getPageProps();
4948
} catch (error) {
50-
console.error("Error getting page props:", error);
5149
pageProps = [];
5250
}
5351

5452
try {
5553
session = await getServerSession();
5654
} catch (error) {
57-
console.error("Error getting server session:", error);
5855
session = null;
5956
}
6057

web/src/helpers/getPageContent.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export async function getPageContent(slug: string[]) {
2727

2828
data = await response.json();
2929
} catch (error) {
30-
console.error("Error fetching menu data:", error);
3130
return { error: "Failed to fetch menu data" };
3231
}
3332

@@ -47,7 +46,6 @@ export async function getPageContent(slug: string[]) {
4746

4847
pageContent = await pageRes.json();
4948
} catch (error) {
50-
console.error("Error fetching page data:", error);
5149
return { error: "Failed to fetch page data" };
5250
}
5351

web/src/lib/auth/strapi.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const signIn = async (email: string, password: string) => {
1414
});
1515
return await response.json();
1616
} catch (e) {
17-
console.log(e);
1817
return null;
1918
}
2019
};
@@ -37,7 +36,6 @@ export const signUp = async (username: string, email: string, password: string,
3736

3837
return await response.json();
3938
} catch (e) {
40-
console.log(e);
4139
return null;
4240
}
4341
};

0 commit comments

Comments
 (0)