set template name from first document

This commit is contained in:
Pete Matsyburka committed 2023-12-23 12:08:46 +02:00
1 parent 0aefe616b3
commit 82b18b08f1
1 file changed
+4
@@ -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)
}