We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f63c89 commit fa8caecCopy full SHA for fa8caec
apps/files/src/views/TemplatePicker.vue
@@ -275,7 +275,13 @@ export default defineComponent({
275
276
async onSubmit() {
277
const fileId = this.selectedTemplate?.fileid
278
- const fields = await getTemplateFields(fileId)
+
279
+ // Only request field extraction if there is a valid template
280
+ // selected and it's not the blank template
281
+ let fields = []
282
+ if (fileId && fileId !== this.emptyTemplate.fileid) {
283
+ fields = await getTemplateFields(fileId)
284
+ }
285
286
if (fields.length > 0) {
287
spawnDialog(TemplateFiller, {
0 commit comments