fix(route): leetcode articles (#13108)

This commit is contained in:
Joey Chai 2023-08-23 22:02:13 +08:00 committed by GitHub
parent 657c67ec37
commit 367bb22b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;