mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:19:45 +00:00
фикс билда
This commit is contained in:
1 parent
968b0b8c82
commit
af763e5865
17 files changed
+224
-134
No files matched your search
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user