fix: build-routes

This commit is contained in:
DIYgod
2024-03-09 03:31:18 +08:00
parent 76e7e8296b
commit 0c8d6f05bf
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ for (const namespace in namespaces) {
}
radar[domain][subdomain].push({
title: data.name,
docs: `https://docs.rsshub.app/routes/${data.categories[0] || 'other'}`,
docs: `https://docs.rsshub.app/routes/${data.categories?.[0] || 'other'}`,
source: data.radar.source.map((source) => {
const sourceURL = new URL('https://' + source);
return sourceURL.pathname + sourceURL.search + sourceURL.hash;