Skip to content

Commit

Permalink
fix(theme-common): fix confusing theme error message: bad sidebar id …
Browse files Browse the repository at this point in the history
…suggestions (#8873)
  • Loading branch information
slorber committed May 15, 2023
1 parent 6fae23b commit aa49226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-theme-common/src/utils/docsUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,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];
Expand Down

0 comments on commit aa49226

Please sign in to comment.