diff --git a/app/javascript/template_builder/builder.vue b/app/javascript/template_builder/builder.vue index 048289a0..3ce9a8da 100644 --- a/app/javascript/template_builder/builder.vue +++ b/app/javascript/template_builder/builder.vue @@ -759,6 +759,10 @@ export default { this.scrollIntoDocument(schema[0]) }) + if (this.template.name === 'New Document') { + this.template.name = this.template.schema[0].name + } + if (this.onUpload) { this.onUpload(this.template) }