Merge pull request #38400 from iamejaaz/ui-pdf-debugging
fix: error when print templates are undefined
This commit is contained in:
commit
cf6ee3d90e
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