From 99111d432edef7df0f237f15094316f6f5e1964a Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Sun, 19 May 2024 18:52:40 -0600 Subject: [PATCH] refactor: thread list accordion --- apps/masterbots.ai/app/(browse)/[category]/page.tsx | 2 +- apps/masterbots.ai/app/actions.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/masterbots.ai/app/(browse)/[category]/page.tsx b/apps/masterbots.ai/app/(browse)/[category]/page.tsx index 852a04e7..1587c13b 100644 --- a/apps/masterbots.ai/app/(browse)/[category]/page.tsx +++ b/apps/masterbots.ai/app/(browse)/[category]/page.tsx @@ -15,7 +15,7 @@ export default async function CategoryPage({ if (searchParams.threadId) permanentRedirect(`${params.category}/${searchParams.threadId}`) const categories = await getCategories() - console.log(params.category) + const categoryId = categories.find( c => toSlug(c.name) === params.category )?.categoryId diff --git a/apps/masterbots.ai/app/actions.ts b/apps/masterbots.ai/app/actions.ts index 993fa8c8..f3ba0cb3 100644 --- a/apps/masterbots.ai/app/actions.ts +++ b/apps/masterbots.ai/app/actions.ts @@ -10,7 +10,6 @@ export async function getThreads({ }: { categoryId?: number }): Promise { - console.log('getThreads categoryId', categoryId) const supabase = await createSupabaseServerClient() let threadsQuery = supabase.from('thread_full').select('*') @@ -22,7 +21,6 @@ export async function getThreads({ // } const { data, error } = await threadsQuery.range(0, 19) - console.log('🤌🏻', data) if (error) return []