Fix missing crops on images

This commit is contained in:
Kenn Jacobsen
2019-02-14 20:16:04 +01:00
committed by Sebastiaan Janssen
parent 3704bfcfe8
commit 4662b2e5d4

View File

@@ -97,7 +97,7 @@ angular.module('umbraco')
if (angular.isString($scope.model.value)) {
setModelValueWithSrc($scope.model.value);
}
else if ($scope.model.value.crops) {
else {
//sync any config changes with the editor and drop outdated crops
_.each($scope.model.value.crops, function (saved) {
var configured = _.find(config.crops, function (item) { return item.alias === saved.alias });