diff --git a/frappe/public/js/frappe/form/dashboard.js b/frappe/public/js/frappe/form/dashboard.js index 55015a5103..5c0ad48de3 100644 --- a/frappe/public/js/frappe/form/dashboard.js +++ b/frappe/public/js/frappe/form/dashboard.js @@ -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 ) {