Skip to content

Commit

Permalink
refactor: thread list accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed May 20, 2024
1 parent de59178 commit 99111d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion apps/masterbots.ai/app/(browse)/[category]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions apps/masterbots.ai/app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export async function getThreads({
}: {
categoryId?: number
}): Promise<MB.ThreadFull[]> {
console.log('getThreads categoryId', categoryId)
const supabase = await createSupabaseServerClient()

let threadsQuery = supabase.from('thread_full').select('*')
Expand All @@ -22,7 +21,6 @@ export async function getThreads({
// }

const { data, error } = await threadsQuery.range(0, 19)
console.log('🤌🏻', data)

if (error) return []

Expand Down

0 comments on commit 99111d4

Please sign in to comment.