From 05e428223d9785babb4ba1314799915924085d67 Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Sat, 25 Apr 2020 13:19:10 +0200 Subject: [PATCH] Require props of QA, Question and Answer --- client/src/components/Answer.vue | 5 ++++- client/src/components/QA.vue | 10 ++++++++-- client/src/components/Question.vue | 5 ++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/client/src/components/Answer.vue b/client/src/components/Answer.vue index 5e2b70e..5ba2ff5 100644 --- a/client/src/components/Answer.vue +++ b/client/src/components/Answer.vue @@ -8,7 +8,10 @@ export default { name: 'Answer', props: { - a: String + a: { + type: String, + required: true, + } } } diff --git a/client/src/components/QA.vue b/client/src/components/QA.vue index 8a69bf1..d93afb1 100644 --- a/client/src/components/QA.vue +++ b/client/src/components/QA.vue @@ -16,8 +16,14 @@ export default { Answer, }, props: { - q: String, - a: String + q: { + type: String, + required: true, + }, + a: { + type: String, + required: true, + } } } diff --git a/client/src/components/Question.vue b/client/src/components/Question.vue index e2a946b..cee01a0 100644 --- a/client/src/components/Question.vue +++ b/client/src/components/Question.vue @@ -8,7 +8,10 @@ export default { name: 'Question', props: { - q: String + q: { + type: String, + required: true, + } } }