diff --git a/Sdl.Web.Tridion.Templates.R2/Data/DefaultModelBuilder.cs b/Sdl.Web.Tridion.Templates.R2/Data/DefaultModelBuilder.cs index acbcb3a..5511dd3 100644 --- a/Sdl.Web.Tridion.Templates.R2/Data/DefaultModelBuilder.cs +++ b/Sdl.Web.Tridion.Templates.R2/Data/DefaultModelBuilder.cs @@ -440,6 +440,11 @@ private EntityModelData GetEntityModelData(ComponentPresentation cp) { Id = $"{GetDxaIdentifier(cp.Component)}-{GetDxaIdentifier(ct)}" }; + + // This property is internal so have to set it via reflection. This prevents the + // publishing package containing an empty DCP + childRenderedItem.GetType().GetProperty("IsRenderedCompletely") + .SetValue(childRenderedItem, false, null); } else {