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 4766bdc commit 6cd0ceaCopy full SHA for 6cd0cea
src/index.ts
@@ -14,7 +14,7 @@ export default async (config: Config): Promise<void> => {
14
consola.info('生成 TypeScript 类型文件中...')
15
// 生成分类 ID 到分类 API 列表的对象
16
const categoryIdToApiList = apiCollection.reduce<{ [id: number]: ApiList }>((res, api) => {
17
- if (api.list.length) {
+ if (api && api.list && api.list.length) {
18
res[api.list[0].catid] = api.list
19
}
20
return res
0 commit comments