fix(route/1point3acres): handle optional tags in category assignment (#20547)
This commit is contained in:
parent
98014554ca
commit
934d95a4ed
|
|
@ -43,7 +43,7 @@ const ProcessThreads = async (tryGet, apiUrl, order) => {
|
|||
link: `${rootUrl}/thread/${item.tid}`,
|
||||
description: item.summary,
|
||||
pubDate: parseDate((order === '' ? item.lastpost : item.dateline) * 1000),
|
||||
category: [item.forum_name, ...item.tags.map((t) => t.displayname)],
|
||||
category: [item.forum_name, ...(item.tags ? item.tags.map((t) => t.displayname) : [])],
|
||||
};
|
||||
|
||||
return tryGet(result.link, async () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue