Merge pull request #663 from omnivore-app/fix/parsing-error

Fix cannot convert null to object error message
This commit is contained in:
Jackson Harper
2022-05-20 13:42:33 -07:00
committed by GitHub

View File

@ -279,7 +279,7 @@ export const parsePreparedContent = async (
return getJSONLdLinkMetadata(dom)
})()
Object.assign(article, {
Object.assign(article || {}, {
content: clean,
title: article?.title || (await jsonLdLinkMetadata).title,
previewImage: