Remove JS error in console when editing document types with Nested Content properties

This commit is contained in:
Kenn Jacobsen
2019-11-12 08:53:35 +01:00
parent 68de8a1fa6
commit 09273b6d6f

View File

@@ -690,7 +690,7 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.NestedContent.Prop
}
function updatePropertyActionStates() {
copyAllEntriesAction.isDisabled = $scope.model.value.length === 0;
copyAllEntriesAction.isDisabled = !$scope.model.value || !$scope.model.value.length;
}
$scope.$watch("currentNode", function (newVal) {