Skip to content

Commit d6e7f83

Browse files
authored
Published Content should handle "is previewing" (#17957)
1 parent 6fc728c commit d6e7f83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Umbraco.PublishedCache.HybridCache/PublishedContent.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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; }

0 commit comments

Comments
 (0)