diff --git a/console/src/modules/wordpress/use-wordpress-data-parser.ts b/console/src/modules/wordpress/use-wordpress-data-parser.ts index e7d1f91..7ef4f35 100644 --- a/console/src/modules/wordpress/use-wordpress-data-parser.ts +++ b/console/src/modules/wordpress/use-wordpress-data-parser.ts @@ -165,7 +165,7 @@ export function useWordPressDataParser( post: { spec: { title: post.title, - slug: post["wp:post_name"] + "", + slug: post["wp:post_name"] || post.title, deleted: post["wp:status"] === "trash", publish: publish, publishTime: new Date(post["wp:post_date"]).toISOString(),