From f775ab84c7ba790abd1947007d018eaba4019f99 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Sat, 9 Sep 2023 13:43:18 +0200 Subject: [PATCH] Fix templates edit --- resources/js/pages/templates/show.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/pages/templates/show.vue b/resources/js/pages/templates/show.vue index 97c2c9a..f0fa95c 100644 --- a/resources/js/pages/templates/show.vue +++ b/resources/js/pages/templates/show.vue @@ -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'