Skip to content

Commit

Permalink
Merge pull request #32 from uploadcare/fix-auto-crop
Browse files Browse the repository at this point in the history
Apply auto-crop even for single image mode
  • Loading branch information
nd0ut authored Mar 27, 2019
2 parents c9bc510 + b1ac39a commit 6af582f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tools/auto-crop.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const autoCrop = (store, settings, uc) => {
const {crop, multiple} = settings
const {crop} = settings
const {image} = store.getState()

// auto-crop only in single file mode
if (!crop || !multiple) {
if (!crop) {
return
}

Expand Down

0 comments on commit 6af582f

Please sign in to comment.