diff --git a/apps/files/src/views/TemplatePicker.vue b/apps/files/src/views/TemplatePicker.vue index 021b58c04cd2c..2a346ae139f4f 100644 --- a/apps/files/src/views/TemplatePicker.vue +++ b/apps/files/src/views/TemplatePicker.vue @@ -260,14 +260,13 @@ export default defineComponent({ }, async onSubmit() { - this.loading = true - if (this.selectedTemplate?.fields?.length > 0) { spawnDialog(TemplateFiller, { fields: this.selectedTemplate.fields, onSubmit: this.createFile, }) } else { + this.loading = true await this.createFile() } },