From a467b9f16c805b4fa9372af649f3b1b00f61d941 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 2 Jun 2019 22:46:46 +0200 Subject: [PATCH] Dont check length of image if image does not exist --- src/components/LandingBanner.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LandingBanner.vue b/src/components/LandingBanner.vue index 135215e..682d986 100644 --- a/src/components/LandingBanner.vue +++ b/src/components/LandingBanner.vue @@ -21,7 +21,7 @@ export default { } }, beforeMount() { - if (this.image.length > 0) { + if (this.image && this.image.length > 0) { this.imageFile = this.image } }