From 865ea584b95eb58f60bedc4abdc84c938d3ce813 Mon Sep 17 00:00:00 2001 From: Dawid Rutkowski Date: Mon, 12 Aug 2019 16:04:50 +0300 Subject: [PATCH] #61 Nested component definitions via Item Link returns only IDs --- .../pipelines/generateManifest/expandReferencedContent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sitecore-jss-manifest/src/generator/pipelines/generateManifest/expandReferencedContent.ts b/packages/sitecore-jss-manifest/src/generator/pipelines/generateManifest/expandReferencedContent.ts index 0cc3a3c3e1..7b51758a3c 100644 --- a/packages/sitecore-jss-manifest/src/generator/pipelines/generateManifest/expandReferencedContent.ts +++ b/packages/sitecore-jss-manifest/src/generator/pipelines/generateManifest/expandReferencedContent.ts @@ -13,7 +13,7 @@ function expandReferencedContent(manifest: ManifestInstance) { const idMap = createIdMapping(manifest); // we expand copy: true ID references to be a copy of the original - idMap.usages.forEach((idReference) => { + idMap.usages.reverse().forEach((idReference) => { expandedItems = true; const source = idMap.ids.get(idReference.id);