U4-7705 Media Picker does not render when image has been deleted

refixing - seems to have been left out in a merge somewhere.
This commit is contained in:
Claus
2016-09-14 08:43:32 +02:00
parent e0981f1c44
commit 8c8a0160a1

View File

@@ -118,7 +118,7 @@ angular.module('umbraco')
//NOTE: The 'entity' can be either a normal media entity or an "entity" returned from the entityResource
// they contain different data structures so if we need to query against it we need to be aware of this.
mediaHelper.registerFileResolver("Umbraco.ImageCropper", function (property, entity, thumbnail) {
if (property.value.src) {
if (property.value && property.value.src) {
if (thumbnail === true) {
return property.value.src + "?width=500&mode=max&animationprocessmode=first";