Dont check length of image if image does not exist

This commit is contained in:
2019-06-02 22:46:46 +02:00
parent c4ef062d98
commit a467b9f16c

View File

@@ -21,7 +21,7 @@ export default {
} }
}, },
beforeMount() { beforeMount() {
if (this.image.length > 0) { if (this.image && this.image.length > 0) {
this.imageFile = this.image this.imageFile = this.image
} }
} }