fix: check for fieldname while setting open count

This commit is contained in:
Akash Tom 2026-02-25 18:46:14 +05:30
parent d2bd7fc0fa
commit f9f06dbb9b

View file

@ -417,10 +417,14 @@ frappe.ui.form.Dashboard = class FormDashboard {
}
set_open_count() {
const has_fieldname =
this.data.fieldname ||
(this.data.transactions && this.data.transactions.some((group) => group.fieldnames));
if (
!this.data ||
!this.data.transactions ||
!this.data.fieldname ||
!has_fieldname ||
this.frm.is_new() ||
this._fetched_counts
) {