diff --git a/src/Umbraco.Web/Editors/DataTypeController.cs b/src/Umbraco.Web/Editors/DataTypeController.cs index cfbca2cdc5..b46013a8bb 100644 --- a/src/Umbraco.Web/Editors/DataTypeController.cs +++ b/src/Umbraco.Web/Editors/DataTypeController.cs @@ -116,7 +116,7 @@ namespace Umbraco.Web.Editors [UmbracoTreeAuthorize(Constants.Trees.DataTypes, Constants.Trees.Content, Constants.Trees.Media)] - public IDictionary> GetAllDataTypesAndEditors() + public IDictionary> GetAllDataTypesAndEditors() { var datadefs = Services.DataTypeService .GetAllDataTypeDefinitions(); @@ -130,7 +130,7 @@ namespace Umbraco.Web.Editors foreach (var unusedEditor in editors) datatypes.Add(Mapper.Map(unusedEditor)); - var grouped = datatypes.GroupBy(x => x.Group.ToLower()).ToDictionary(group => group.Key, group => group.ToList()); + var grouped = datatypes.GroupBy(x => x.Group.ToLower()).ToDictionary(group => group.Key, group => group.AsEnumerable()); return grouped; }