From 9395f7535b32b02806e7c36d4beb6b44a246a134 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Thu, 11 Jan 2024 16:45:49 +0530 Subject: [PATCH] fix: possible typeerror in consolidated report (cherry picked from commit 268731aec4fb7a8bf9bc698773894d8fa722eb1a) --- .../consolidated_financial_statement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js index b7d25c41982..cb1083b06c1 100644 --- a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js +++ b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js @@ -129,7 +129,7 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() { } value = default_formatter(value, row, column, data); - if (!data.parent_account) { + if (data && !data.parent_account) { value = $(`${value}`); var $value = $(value).css("font-weight", "bold");