Skip to content

Commit fdb6171

Browse files
Use Unwrap to return MediaItem
1 parent bb45b62 commit fdb6171

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Umbraco.Core/Models/MediaWithCrops.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ namespace Umbraco.Core.Models
88
/// </summary>
99
public class MediaWithCrops : PublishedContentWrapped
1010
{
11-
public IPublishedContent MediaItem { get; }
11+
public IPublishedContent MediaItem => Unwrap();
1212

1313
public ImageCropperValue LocalCrops { get; }
1414

1515
public MediaWithCrops(IPublishedContent content, ImageCropperValue localCrops)
1616
: base(content)
1717
{
18-
MediaItem = content;
1918
LocalCrops = localCrops;
2019
}
2120
}

0 commit comments

Comments
 (0)