From 67c0c415b35cb28bd77e4f607ac6ed937c452cde Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:27:42 +0100 Subject: [PATCH] fix: displayName resolves to `label` instead of object (#3474) --- showcases/patternhub/scripts/generate-docs-mdx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`;