fix(theme-common): fix confusing theme error message: bad sidebar id suggestions (#8873)

This commit is contained in:
Sébastien Lorber 2023-04-13 15:41:29 +01:00 committed by sebastienlorber
parent 6fae23b076
commit aa49226f17

View File

@ -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];