File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ export function DocsHeader({
32
32
} ) {
33
33
let pathname = usePathname ( )
34
34
35
- let section = flatNavigation . find (
36
- ( section ) => section . links ?. find ( ( link ) => link . href === pathname ) ,
35
+ let section = flatNavigation . find ( ( section ) =>
36
+ section . links ?. find ( ( link ) => link . href === pathname ) ,
37
37
)
38
38
39
39
if ( ! title && ! section ) {
Original file line number Diff line number Diff line change @@ -162,9 +162,8 @@ function SearchResult({
162
162
let id = useId ( )
163
163
let pathname = usePathname ( )
164
164
165
- let sectionTitle = flatNavigation . find (
166
- ( section ) =>
167
- section . links ?. find ( ( link ) => link . href === result . url . split ( '#' ) [ 0 ] ) ,
165
+ let sectionTitle = flatNavigation . find ( ( section ) =>
166
+ section . links ?. find ( ( link ) => link . href === result . url . split ( '#' ) [ 0 ] ) ,
168
167
) ?. title
169
168
let hierarchy = [ sectionTitle , result . pageTitle ] . filter (
170
169
( x ) : x is string => typeof x === 'string' ,
You can’t perform that action at this time.
0 commit comments