diff --git a/lib/v2/leetcode/articles.js b/lib/v2/leetcode/articles.js index 0ae6395b9..08055c20c 100644 --- a/lib/v2/leetcode/articles.js +++ b/lib/v2/leetcode/articles.js @@ -62,7 +62,7 @@ module.exports = async (ctx) => { const converter = new showdown.Converter(); const solution = converter.makeHtml(questionNote.data.question.solution.content); - info.description = questionData.data.question.content.trim() + solution; + info.description = questionData.data.question.content?.trim() + solution; info.pubDate = parseDate(info.pubDate); return info;