From fa23082402c8a0af87d9e6087a3abc7f8d26f061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 29 May 2020 09:59:17 +0200 Subject: [PATCH] only manipulate content-content-app if its present --- .../blockeditor/blockeditor.controller.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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: