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 0126dbc commit b12f3fbCopy full SHA for b12f3fb
lib/routes/apnews/utils.ts
@@ -25,7 +25,7 @@ export function fetchArticle(item) {
25
pubDate: parseDate(ldjson.datePublished),
26
updated: parseDate(ldjson.dateModified),
27
description: $('div.RichTextStoryBody').html(),
28
- category: [`section:${$("meta[property='article:section']").attr('content')}`, ...ldjson.keywords],
+ category: [`section:${$("meta[property='article:section']").attr('content')}`, ...(ldjson.keywords ?? [])],
29
guid: $("meta[name='brightspot.contentId']").attr('content'),
30
author: ldjson.author,
31
...item,
0 commit comments