diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js index b335354bc4..8f870051dd 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js @@ -605,13 +605,17 @@ function listViewController($rootScope, $scope, $routeParams, $injector, $cookie //$scope.listViewAllowedTypes = getContentTypesCallback(id); getContentTypesCallback(id).then(function (listViewAllowedTypes) { - var blueprints = false; $scope.listViewAllowedTypes = listViewAllowedTypes; - angular.forEach(listViewAllowedTypes, function (allowedType) { - angular.forEach(allowedType.blueprints, function (value, key) { + var blueprints = false; + _.each(listViewAllowedTypes, function (allowedType) { + if (_.isEmpty(allowedType.blueprints)) { + // this helps the view understand that there are no blueprints available + allowedType.blueprints = null; + } + else { blueprints = true; - }); + } }); if (listViewAllowedTypes.length === 1 && blueprints === false) { diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html index ddd60d558e..a0e4c5fda7 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html @@ -45,7 +45,7 @@
  • - {{contentType.name}} (blank) + {{contentType.name}} (blank)