Skip to content

Commit f6e199f

Browse files
committed
Fix issues with single image uploads
1 parent 00ef391 commit f6e199f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/cropper/cropper-ui.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,11 @@ class SaveImageAjaxController extends WebAppDefaultAjaxController {
518518
};
519519
cropperUI.destroy(this.domElement);
520520
var image = cropperUI.getImage(this.domElement);
521-
cropperUI.createCropper(image[0], options);
521+
image[0].src = data.data.path;
522+
var cropperOptions = {
523+
autoCrop: false,
524+
};
525+
cropperUI.createCropper(image[0], options, cropperOptions);
522526
}
523527
} else {
524528
this.showError();

0 commit comments

Comments
 (0)