fix(party dashboard): empty array is truthy, check for length (#16184)

This commit is contained in:
Sagar Vora 2018-12-10 17:19:10 +05:30 committed by Rushabh Mehta
parent 39b31ece31
commit 4c5bd253a2

View File

@ -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(
'</div><div class="col-xs-6 small" style="margin-bottom:10px">Annual Billing: <b>'