diff --git a/assets/js/um-crop.js b/assets/js/um-crop.js index 3ab83a2c..52cc37d0 100644 --- a/assets/js/um-crop.js +++ b/assets/js/um-crop.js @@ -379,11 +379,12 @@ initContainer: function () { var $container = this.$container; - - this.container = { - width: max($container.width(), 300), - height: max($container.height(), 150) - }; + if($container !== NULL){ + this.container = { + width: max($container.width(), 300), + height: max($container.height(), 150) + }; + } }, initCropper: function () {