Skip to content

Commit

Permalink
Set default values for screen templates prop
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjacornelius committed Oct 8, 2024
1 parent cc4b437 commit 7417bf1
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/components/ScreenTemplates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7417bf1

Please sign in to comment.