File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Umbraco.PublishedCache.HybridCache Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ public PublishedContent(
4242 _urlSegment = contentData . UrlSegment ;
4343 _published = contentData . Published ;
4444
45+ IsPreviewing = preview ;
46+
4547 var properties = new IPublishedProperty [ _contentNode . ContentType . PropertyTypes . Count ( ) ] ;
4648 var i = 0 ;
4749 foreach ( IPublishedPropertyType propertyType in _contentNode . ContentType . PropertyTypes )
@@ -127,7 +129,7 @@ private UmbracoObjectTypes GetObjectType()
127129
128130 public override DateTime UpdateDate { get ; }
129131
130- public bool IsPreviewing { get ; } = false ;
132+ public bool IsPreviewing { get ; }
131133
132134 // Needed for publishedProperty
133135 internal IVariationContextAccessor VariationContextAccessor { get ; }
You can’t perform that action at this time.
0 commit comments