fix: dont check first row on report load

- This doesn't actually load the chart but leaves UI and data in
  inconsistent state
- On refresh it randomly keeps toggling the first row - confusing
  behaviour.
This commit is contained in:
Ankush Menat 2022-07-15 13:31:17 +05:30 committed by Ankush Menat
parent ceeea6180e
commit 67a74a4d14
2 changed files with 0 additions and 6 deletions

View File

@ -68,9 +68,6 @@ frappe.query_reports["Purchase Analytics"] = {
}
],
after_datatable_render: function(datatable_obj) {
$(datatable_obj.wrapper).find(".dt-row-0").find('input[type=checkbox]').click();
},
get_datatable_options(options) {
return Object.assign(options, {
checkboxColumn: true,

View File

@ -67,9 +67,6 @@ frappe.query_reports["Sales Analytics"] = {
reqd: 1
}
],
after_datatable_render: function(datatable_obj) {
$(datatable_obj.wrapper).find(".dt-row-0").find('input[type=checkbox]').click();
},
get_datatable_options(options) {
return Object.assign(options, {
checkboxColumn: true,