file-uploader: add undefined check to prevent .js error in content type editor

This commit is contained in:
Mads Rasmussen
2015-09-03 12:30:04 +02:00
parent a324d99e50
commit 1d7dca3d9d

View File

@@ -49,7 +49,7 @@ function fileUploadController($scope, $element, $compile, imageHelper, fileManag
$scope.originalValue = $scope.model.value;
//create the property to show the list of files currently saved
if ($scope.model.value != "") {
if ($scope.model.value != "" && $scope.model.value != undefined) {
var images = $scope.model.value.split(",");
@@ -171,4 +171,4 @@ angular.module("umbraco")
}
});
}
});
});