From 7417bf10fa856ff14c30581a905f9298002b6303 Mon Sep 17 00:00:00 2001 From: Sanja Date: Tue, 8 Oct 2024 10:35:45 -0700 Subject: [PATCH] Set default values for screen templates prop --- src/components/ScreenTemplates.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/ScreenTemplates.vue b/src/components/ScreenTemplates.vue index ed388f5ac..4f9446da5 100644 --- a/src/components/ScreenTemplates.vue +++ b/src/components/ScreenTemplates.vue @@ -87,8 +87,19 @@ components: { ScreenTemplateCard, }, - props: ['screenId', 'currentScreenPage', 'screenType'], - mounted() { + props: { + screenId: { + type: Number, + required: true, + }, + currentScreenPage: { + type: Number, + default: 0, + }, + screenType: { + type: String, + default: 'FORM', + } }, data() { return {