commit | 4c5bd253a25be548381484e1fcb74ec7361edf72 | [log] [tgz] |
---|---|---|
author | Sagar Vora <sagar@resilient.tech> | Mon Dec 10 17:19:10 2018 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Mon Dec 10 17:19:10 2018 +0530 |
tree | e999db05a8690f30b545b8c08e9c5ac9be7458e0 | |
parent | 39b31ece313dc19983b54cd88b3501d84e0890ec [diff] [blame] |
fix(party dashboard): empty array is truthy, check for length (#16184)
diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index e293321..dc989e2 100644 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js
@@ -120,7 +120,7 @@ ); }); } - else { + else if (company_wise_info.length === 1) { frm.dashboard.stats_area.removeClass('hidden'); frm.dashboard.stats_area_row.append( '</div><div class="col-xs-6 small" style="margin-bottom:10px">Annual Billing: <b>'