mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 02:39:45 +00:00
Пофиксил отображение проектов. Убрал лишнее поле categories в типе
This commit is contained in:
1 parent
84bffc7235
commit
e7ccd0263c
3 files changed
+15
-9
No files matched your search
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user