From 041071bd9af99740b88cdf3519bde92d62b11ea6 Mon Sep 17 00:00:00 2001 From: Richard Gerum <14153051+rgerum@users.noreply.github.com> Date: Sat, 16 Dec 2023 22:56:00 -0500 Subject: [PATCH] removed test logs --- src/app/(stories)/(main)/course_list.jsx | 4 +--- src/app/(stories)/(main)/language_button.jsx | 3 --- src/app/(stories)/(main)/page.jsx | 1 - src/app/(stories)/learn/page.jsx | 1 - src/app/(stories)/story/[story_id]/page.jsx | 1 - src/app/admin/story/[story_id]/story_display.jsx | 1 - src/app/editor/(course)/approve/[story_id]/route.js | 1 - .../course/[course_id]/import/send/[story_id]/route.js | 5 +---- 8 files changed, 2 insertions(+), 15 deletions(-) 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 (