From 6c02e5596ef13e36ce47a6fd0b0a780a911ec131 Mon Sep 17 00:00:00 2001 From: Roland Asmann Date: Wed, 11 Sep 2024 01:20:19 +0200 Subject: [PATCH] Handling sub-components of the root component the same as all other components. Signed-off-by: Roland Asmann --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 4ec9ddd93..60f5ec345 100644 --- a/index.js +++ b/index.js @@ -557,6 +557,11 @@ function addMetadata(parentComponent = {}, options = {}, context = {}) { } } if (parentComponent?.components) { + parentComponent.components = listComponents( + options, + {}, + parentComponent.components, + ); const parentFullName = componentToSimpleFullName(parentComponent); const subComponents = []; const addedSubComponents = {};