fix: error when print templates are undefined
This commit is contained in:
parent
fcb40f71c4
commit
1f1c272e63
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ let fields = computed(() => {
|
|||
return fields;
|
||||
});
|
||||
let print_templates = computed(() => {
|
||||
let templates = print_format.value.__onload.print_templates || {};
|
||||
let templates = print_format.value.__onload?.print_templates || [];
|
||||
let out = [];
|
||||
for (let template of templates) {
|
||||
let df;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue