Merge pull request #38400 from iamejaaz/ui-pdf-debugging

fix: error when print templates are undefined
This commit is contained in:
Ejaaz Khan 2026-04-04 18:06:45 +05:30 committed by GitHub
commit cf6ee3d90e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;