diff --git a/src/app/(stories)/(main)/course_list.jsx b/src/app/(stories)/(main)/course_list.jsx index bbede3eb..a7cd4430 100644 --- a/src/app/(stories)/(main)/course_list.jsx +++ b/src/app/(stories)/(main)/course_list.jsx @@ -34,11 +34,10 @@ ORDER BY COALESCE(NULLIF(c.name, ''), l2.name); async function LanguageGroup({ name, tag, id }) { let courses = await get_courses(tag ? tag : "main"); - console.log("vcourses", courses); + let localisation = await get_localisation(id); let courses_list = courses[id]; - console.log("LanguageGroup", name, tag, id); if (!courses_list) return <>no list {name}; return ( @@ -69,7 +68,6 @@ async function CourseListInner({ loading, tag }) { ); } let course_groups = await get_courses_list(tag ? tag : "main"); - console.log("course_groups", course_groups); return ( <> {course_groups?.map((group) => ( diff --git a/src/app/(stories)/(main)/language_button.jsx b/src/app/(stories)/(main)/language_button.jsx index bafc051c..65119489 100644 --- a/src/app/(stories)/(main)/language_button.jsx +++ b/src/app/(stories)/(main)/language_button.jsx @@ -4,7 +4,6 @@ import { cache, Suspense } from "react"; import { sql } from "lib/db"; import get_localisation from "lib/get_localisation"; import FlagById from "components/layout/flag_by_id"; -import { unstable_cache } from "next/cache"; let get_courses = cache(async () => { let courses = await sql` @@ -53,8 +52,6 @@ export default async function LanguageButton({ course_id, loading }) { } let localisation = await get_localisation(course.from_language); - console.log("id", course, course.learning_language); - return (