Merge pull request #663 from omnivore-app/fix/parsing-error
Fix cannot convert null to object error message
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user