From 4c5bd253a25be548381484e1fcb74ec7361edf72 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Mon, 10 Dec 2018 17:19:10 +0530 Subject: [PATCH] fix(party dashboard): empty array is truthy, check for length (#16184) --- erpnext/public/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index e2933210bb6..dc989e2fa96 100644 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -120,7 +120,7 @@ $.extend(erpnext.utils, { ); }); } - else { + else if (company_wise_info.length === 1) { frm.dashboard.stats_area.removeClass('hidden'); frm.dashboard.stats_area_row.append( '
Annual Billing: '