фикс билда

This commit is contained in:
vsevolod22 committed 2025-04-17 21:28:15 +03:00
1 parent 968b0b8c82
commit af763e5865
17 files changed
+224 -134

No files matched your search

+2 -1
View File
@@ -9,7 +9,8 @@ export function CategoryPage({ category }: CategoryPageProps) {
const { data: postsData, isLoading, isError } = usePosts();
const categoryPosts =
postsData?.other.filter((post) => post.categories.includes(category)) || [];
postsData?.other.filter((post) => post.categories?.includes(category)) ||
[];
if (isLoading)
return (