diff --git a/frappe/public/js/print_format_builder/PrintFormatControls.vue b/frappe/public/js/print_format_builder/PrintFormatControls.vue index 4026d12087..9b8a0eb899 100644 --- a/frappe/public/js/print_format_builder/PrintFormatControls.vue +++ b/frappe/public/js/print_format_builder/PrintFormatControls.vue @@ -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;