fix: Dont show estimate tooltip on small counts (#33556)

These are "accurate" even with max limits.
This commit is contained in:
Ankush Menat 2025-08-06 17:08:12 +05:30 committed by GitHub
parent 93b77757d8
commit f28c48bc83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -652,7 +652,10 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
let $count = this.get_count_element();
this.get_count_str().then((count) => {
$count.html(`<span>${count}</span>`);
if (this.count_upper_bound) {
if (
this.count_upper_bound &&
(this.total_count == this.count_upper_bound || this.total_count == null)
) {
$count.attr(
"title",
__(