From 1f1c272e633f1856eee8ec366f1b764d9b9c19e1 Mon Sep 17 00:00:00 2001 From: Ejaaz Khan Date: Sat, 4 Apr 2026 17:42:08 +0530 Subject: [PATCH] fix: error when print templates are undefined --- frappe/public/js/print_format_builder/PrintFormatControls.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;