commit | 268731aec4fb7a8bf9bc698773894d8fa722eb1a | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Thu Jan 11 16:45:49 2024 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Thu Jan 11 16:45:49 2024 +0530 |
tree | ce5d92830b98c1c960253f9cdeccf4ac5f2db37a | |
parent | c67b0a3a6408075785211da20603fbcd829825bb [diff] |
fix: possible typeerror in consolidated report
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 0e0c42d..6210fd1 100644 --- a/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js +++ b/erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js
@@ -128,7 +128,7 @@ } value = default_formatter(value, row, column, data); - if (!data.parent_account) { + if (data && !data.parent_account) { value = $(`<span>${value}</span>`); var $value = $(value).css("font-weight", "bold");