File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/core-packages-documentation-generator/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export class SdkIndexLinkClientPlugin {
71
71
const clientsCategory = group . categories . find ( ( value ) => value . title === "Clients" ) ;
72
72
for ( const child of clientsCategory . children || [ ] ) {
73
73
// "clients/service" => "service"
74
- const clientName = child . sources [ 0 ] . fileName . split ( sep ) [ 1 ] ;
74
+ const clientName = child . sources ?. [ 0 ] . fileName . split ( sep ) [ 1 ] ;
75
75
const clientDocDir = clientDocsPattern . replace ( / { { CLIENT} } / g, clientName ) ;
76
76
child . url = join ( clientDocDir , "index.html" ) ;
77
77
}
@@ -119,6 +119,6 @@ export class SdkIndexLinkClientPlugin {
119
119
}
120
120
121
121
private isLib ( item : DeclarationReflection ) : boolean {
122
- return item ?. sources [ 0 ] . fileName . startsWith ( `lib${ sep } ` ) ;
122
+ return item ?. sources ?. [ 0 ] . fileName . startsWith ( `lib${ sep } ` ) ;
123
123
}
124
124
}
You can’t perform that action at this time.
0 commit comments