diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/blockeditor/blockeditor.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/blockeditor/blockeditor.controller.js index 9fb32339f3..ff149c8bb7 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/blockeditor/blockeditor.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/blockeditor/blockeditor.controller.js @@ -19,12 +19,13 @@ angular.module("umbraco") // replace view of content app. var contentApp = apps.find(entry => entry.alias === "umbContent"); - contentApp.view = "views/common/infiniteeditors/elementeditor/elementeditor.content.html"; - - if($scope.model.hideContent) { - apps.splice(apps.indexOf(contentApp), 1); - } else if ($scope.model.openSettings !== true) { - contentApp.active = true; + if(contentApp) { + contentApp.view = "views/common/infiniteeditors/elementeditor/elementeditor.content.html"; + if($scope.model.hideContent) { + apps.splice(apps.indexOf(contentApp), 1); + } else if ($scope.model.openSettings !== true) { + contentApp.active = true; + } } // remove info app: