Skip to content

Commit

Permalink
fix: never go to second logic
Browse files Browse the repository at this point in the history
  • Loading branch information
berviantoleo authored Nov 27, 2020
1 parent abb0ec6 commit 0c8a117
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ReactMultiCrop extends Component {
changeImage() {
const { record, image } = this.props
let setImage = this.loadImage.bind(this)
if (typeof record === 'object') {
if (typeof record === 'object' && record.image) {
fabric.Image.fromURL(record.image, setImage)
} else if (typeof image === 'string') {
fabric.Image.fromURL(image, setImage)
Expand Down

0 comments on commit 0c8a117

Please sign in to comment.