From c74b03a1b603904bee72aac2192b9ca6f5cc35cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 1 Jul 2020 20:10:28 +0200 Subject: [PATCH] check for object before prop --- .../blocklist.blockconfiguration.overlay.controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/prevalue/blocklist.blockconfiguration.overlay.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/prevalue/blocklist.blockconfiguration.overlay.controller.js index a42784f55a..0f58b84ee9 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/prevalue/blocklist.blockconfiguration.overlay.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/blocklist/prevalue/blocklist.blockconfiguration.overlay.controller.js @@ -132,11 +132,11 @@ vm.elementTypes[i] = args.documentType; } } - if (vm.contentPreview.key === key) { + if (vm.contentPreview && vm.contentPreview.key === key) { vm.contentPreview = args.documentType; $scope.$evalAsync(); } - if (vm.settingsPreview.key === key) { + if (vm.settingsPreview && vm.settingsPreview.key === key) { vm.settingsPreview = args.documentType; $scope.$evalAsync(); }