fix: check for fieldname while setting open count
This commit is contained in:
parent
d2bd7fc0fa
commit
f9f06dbb9b
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue