Commit 544f2b1

HPCesia <me@hpcesia.com>
2025-02-10 16:05:25
fix: category bar props
1 parent 3df9b61
Changed files (1)
src
pages
archives
categories
[category]
src/pages/archives/categories/[category]/[page].astro
@@ -37,7 +37,7 @@ const categories = await getCategories();
 ---
 
 <GridLayout title={category}>
-  <CategoryBar categories={categories} currentCategory={category} />
+  <CategoryBar categories={Array.from(categories.keys())} currentCategory={category} />
   <PostPage
     posts={posts}
     currentPage={currentPage}