From 08cfe4e3c9483fb070dde1a248e7c5b68d00c7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Thu, 13 Apr 2023 15:41:29 +0100 Subject: [PATCH] fix(theme-common): fix confusing theme error message: bad sidebar id suggestions (#8873) --- packages/docusaurus-theme-common/src/utils/docsUtils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-common/src/utils/docsUtils.tsx b/packages/docusaurus-theme-common/src/utils/docsUtils.tsx index d0d8f6f93f..dfe0f24dc9 100644 --- a/packages/docusaurus-theme-common/src/utils/docsUtils.tsx +++ b/packages/docusaurus-theme-common/src/utils/docsUtils.tsx @@ -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];