mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-04 02:18:04 +02:00
refactor: reduce number of leaked anys (#7465)
This commit is contained in:
parent
6e62bba30f
commit
89b0fff128
39 changed files with 121 additions and 89 deletions
|
@ -318,7 +318,7 @@ export function useDocRouteMetadata({
|
|||
}
|
||||
|
||||
// For now, the sidebarName is added as route config: not ideal!
|
||||
const sidebarName = currentDocRoute.sidebar;
|
||||
const sidebarName = currentDocRoute.sidebar as string;
|
||||
|
||||
const sidebarItems = sidebarName
|
||||
? versionMetadata.docsSidebars[sidebarName]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue