Skip to content

Commit

Permalink
Fix templates edit
Browse files Browse the repository at this point in the history
  • Loading branch information
JhumanJ committed Sep 9, 2023
1 parent 7ab9cfa commit f775ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/pages/templates/show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default {
return this.$store.getters['open/templates/getBySlug'](this.$route.params.slug)
},
form () {
return new Form(this.template.structure)
return this.template ? new Form(this.template.structure) : null
},
metaTitle () {
return this.template ? this.template.name : 'Form Template'
Expand Down

0 comments on commit f775ab8

Please sign in to comment.