Minor fix

This commit is contained in:
Stephan
2019-04-07 11:27:34 +02:00
parent 8049c40f90
commit 6aeea47f6f

View File

@@ -64,7 +64,6 @@ namespace Umbraco.Web.Models.Mapping
// Umbraco.Code.MapAll
private static void Map(IContent source, ContentPropertyCollectionDto target, MapperContext context)
{
// must pass the context through
target.Properties = source.Properties.Select(context.Map<ContentPropertyDto>);
}
@@ -128,7 +127,6 @@ namespace Umbraco.Web.Models.Mapping
target.Owner = _commonMapper.GetOwner(source, context);
target.ParentId = source.ParentId;
target.Path = source.Path;
// must pass the context through
target.Properties = source.Properties.Select(context.Map<ContentPropertyBasic>);
target.SortOrder = source.SortOrder;
target.State = _basicStateMapper.Map(source, context);