From 8281a7faf912e152f6a61c1c2ccf0a5f53991861 Mon Sep 17 00:00:00 2001 From: Johan Gunawan Date: Thu, 1 Dec 2022 15:12:09 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=9CInvalid=20prop:=20type=20check?= =?UTF-8?q?=20failed=20for=20prop=20"answers"=20warnings=20displayed=20in?= =?UTF-8?q?=20the=20DevTools=20Console=20when=20opening=20the=20=E2=80=9Cv?= =?UTF-8?q?ehicle-year=E2=80=9D=20page=20locally.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Initial value for "years" should be assigned to an empty array. "Array" is a function and need to be called with "new Array()" to get an empty array. I opted for a shorter syntax but the idea is the same. --- src/layouts/vehicle-year/year-question/year-question.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/vehicle-year/year-question/year-question.vue b/src/layouts/vehicle-year/year-question/year-question.vue index 0cd35425..84dfd15f 100644 --- a/src/layouts/vehicle-year/year-question/year-question.vue +++ b/src/layouts/vehicle-year/year-question/year-question.vue @@ -20,7 +20,7 @@ name: "year-question", data() { return { - years: Array, + years: [], }; }, props: {