Fix templates edit

This commit is contained in:
Julien Nahum 2023-09-09 13:43:18 +02:00
parent 7ab9cfaca7
commit f775ab84c7
1 changed files with 1 additions and 1 deletions

View File

@ -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'