Dont check length of image if image does not exist
This commit is contained in:
@@ -21,7 +21,7 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
if (this.image.length > 0) {
|
||||
if (this.image && this.image.length > 0) {
|
||||
this.imageFile = this.image
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user