Пофиксил отображение проектов. Убрал лишнее поле categories в типе

This commit is contained in:
ifraimka1 committed 2025-04-17 19:11:07 +03:00
1 parent 84bffc7235
commit e7ccd0263c
3 files changed
+15 -9

No files matched your search

+1 -2
View File
@@ -31,7 +31,6 @@ export const fetchPosts = async (): Promise<App.PostsResult> => {
const newPost: App.WpPost = {
id: post.id,
title: post.title.rendered,
categories: postCategories,
};
if (postCategories.includes("projects")) {
@@ -58,6 +57,6 @@ export const fetchPosts = async (): Promise<App.PostsResult> => {
result.other.push(newWpPostPage);
}
}
console.log('fetchPosts result', result);
return result;
};