fixes js null issue with boolean.controller
This commit is contained in:
@@ -4,8 +4,8 @@ function booleanEditorController($scope, $rootScope, assetsService) {
|
||||
$scope.renderModel = {
|
||||
value: false
|
||||
};
|
||||
|
||||
if($scope.model.config.default.toString() === "1" && $scope.model && !$scope.model.value) {
|
||||
|
||||
if ($scope.model.config.default && $scope.model.config.default.toString() === "1" && $scope.model && !$scope.model.value) {
|
||||
$scope.renderModel.value = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user