Skip to content

Commit

Permalink
fix: resolve issue with post slug possibly being empty during wordpre…
Browse files Browse the repository at this point in the history
…ss importing (#48)

修复 WordPress 迁移时,文章别名可能为空导致迁移失败的问题。

/kind bug


```release-note
修复 WordPress 迁移时,文章别名可能为空导致迁移失败的问题。
```
  • Loading branch information
ruibaby authored Jun 24, 2024
1 parent 4abdf17 commit 12b41d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/src/modules/wordpress/use-wordpress-data-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,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(),
Expand Down

0 comments on commit 12b41d0

Please sign in to comment.