mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-01 08:57:50 +02:00
fix(theme-common): fix confusing theme error message: bad sidebar id suggestions (#8873)
This commit is contained in:
parent
f76fc1bfac
commit
08cfe4e3c9
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ export function useLayoutDocsSidebar(
|
|||
versions.length > 1 ? 's' : ''
|
||||
} ${versions.map((version) => version.name).join(', ')}".
|
||||
Available sidebar ids are:
|
||||
- ${Object.keys(allSidebars).join('\n- ')}`,
|
||||
- ${allSidebars.map((entry) => entry[0]).join('\n- ')}`,
|
||||
);
|
||||
}
|
||||
return sidebarEntry[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue