Skip to content

Commit 934d95a

Browse files
authored
fix(route/1point3acres): handle optional tags in category assignment (#20547)
1 parent 9801455 commit 934d95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/routes/1point3acres/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const ProcessThreads = async (tryGet, apiUrl, order) => {
4343
link: `${rootUrl}/thread/${item.tid}`,
4444
description: item.summary,
4545
pubDate: parseDate((order === '' ? item.lastpost : item.dateline) * 1000),
46-
category: [item.forum_name, ...item.tags.map((t) => t.displayname)],
46+
category: [item.forum_name, ...(item.tags ? item.tags.map((t) => t.displayname) : [])],
4747
};
4848

4949
return tryGet(result.link, async () => {

0 commit comments

Comments
 (0)