We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77cdf9d commit 1dd2324Copy full SHA for 1dd2324
src/commands/posts-list/save-post.ts
@@ -76,6 +76,7 @@ export const saveLocalDraftToCnblogs = async (localDraft: LocalDraftFile) => {
76
post.postBody = content;
77
post.title = localDraft.fileNameWithoutExt;
78
post.isMarkdown = true;
79
+ post.categoryIds ??= [];
80
const userInputPostConfig = await inputPostSettings(post.title, post);
81
if (!userInputPostConfig) {
82
AlertService.warning('操作已取消');
0 commit comments