mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 03:29:45 +00:00
фикс билда
This commit is contained in:
1 parent
6f6e122a71
commit
eb3236b7a4
11 files changed
+25
-15
No files matched your search
@@ -39,7 +39,7 @@ export const fetchPostProjects = async (tag: number): Promise<App.Card[]> => {
|
||||
const newPost: App.Card = {
|
||||
id: post.id,
|
||||
title: post.title.rendered,
|
||||
preview: image?.src || null,
|
||||
preview: image?.src || "",
|
||||
};
|
||||
|
||||
result.push(newPost);
|
||||
|
||||
@@ -36,7 +36,7 @@ export const fetchPosts = async (): Promise<App.PostsResult> => {
|
||||
if (postCategories.includes("projects")) {
|
||||
const newProject: App.Card = {
|
||||
...newPost,
|
||||
preview: image?.src || null,
|
||||
preview: image?.src || "",
|
||||
};
|
||||
result.projects[post.id] = newProject;
|
||||
} else if (postCategories.includes("labs")) {
|
||||
@@ -44,7 +44,7 @@ export const fetchPosts = async (): Promise<App.PostsResult> => {
|
||||
const excerptElement = Parse(post.excerpt.rendered)[0];
|
||||
const newLab: App.LabCard = {
|
||||
...newPost,
|
||||
preview: image?.src || undefined,
|
||||
preview: image?.src || "",
|
||||
previewText: (excerptElement as any)?.props?.children || "",
|
||||
};
|
||||
result.labs[post.id] = newLab;
|
||||
@@ -53,6 +53,7 @@ export const fetchPosts = async (): Promise<App.PostsResult> => {
|
||||
...newPost,
|
||||
content: parseContent(post.content.rendered),
|
||||
tag: post.tags[0],
|
||||
categories: postCategories,
|
||||
};
|
||||
result.other.push(newWpPostPage);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user