Commit 11c3b09 1 parent 8d4a479 commit 11c3b09 Copy full SHA for 11c3b09
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,17 @@ export function createPipelineFetcherLegacy<T> (getContentsList: () => Promise<T
11
11
12
12
if ( params . surround ) {
13
13
// @ts -ignore
14
- return result . surround
14
+ return result ? .surround
15
15
}
16
16
17
- if ( ( result as any ) . dirConfig ) {
17
+ if ( ( result as any ) ? .dirConfig ) {
18
18
result . result = {
19
19
_path : ( result as any ) . dirConfig ?. _path ,
20
20
...( result . result as T ) ,
21
21
_dir : ( result as any ) . dirConfig
22
22
}
23
23
}
24
24
25
- return result . result as T | T [ ]
25
+ return result ? .result as T | T [ ]
26
26
}
27
27
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export function createQuery <T = ParsedContent> (fetcher: ContentQueryFetcher<T>
35
35
return result . surround
36
36
}
37
37
38
- if ( ( result as any ) . dirConfig ) {
38
+ if ( ( result as any ) ? .dirConfig ) {
39
39
result . result = {
40
40
_path : ( result as any ) . dirConfig ?. _path ,
41
41
...( result . result as T ) ,
You can’t perform that action at this time.
0 commit comments