fix: possible typeerror in consolidated report

This commit is contained in:
ruthra kumar 2024-01-11 16:45:49 +05:30
parent c67b0a3a64
commit 268731aec4

View File

@ -128,7 +128,7 @@ frappe.query_reports["Consolidated Financial Statement"] = {
}
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");