diff --git a/showcases/patternhub/scripts/generate-docs-mdx.js b/showcases/patternhub/scripts/generate-docs-mdx.js index acec50f53e0..3927d1aed52 100644 --- a/showcases/patternhub/scripts/generate-docs-mdx.js +++ b/showcases/patternhub/scripts/generate-docs-mdx.js @@ -32,7 +32,7 @@ const generateDocsMdx = async () => { const componentGroup = getComponentGroup(components, componentName); const displayName = componentGroup?.subNavigation?.find( (component) => component.name === componentName - ); + ).label; if (componentGroup) { const componentOldPath = `${componentsPath}/${componentName}`;