refactor: Remove unnecessary code in query_report
get_user_settings is useless after following refactor
https://github.com/frappe/frappe/pull/5473
https://github.com/frappe/frappe/pull/5834
53193d3130
This commit is contained in:
parent
ab6d6f3f65
commit
f51c975759
1 changed files with 0 additions and 8 deletions
|
|
@ -242,7 +242,6 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
() => this.setup_filters(),
|
||||
() => this.set_route_filters(),
|
||||
() => this.report_settings.onload && this.report_settings.onload(this),
|
||||
() => this.get_user_settings(),
|
||||
() => this.refresh()
|
||||
]);
|
||||
}
|
||||
|
|
@ -850,13 +849,6 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
setTimeout(preview_chart, 500);
|
||||
}
|
||||
|
||||
get_user_settings() {
|
||||
return frappe.model.user_settings.get(this.report_name)
|
||||
.then(user_settings => {
|
||||
this.user_settings = user_settings;
|
||||
});
|
||||
}
|
||||
|
||||
prepare_columns(columns) {
|
||||
return columns.map(column => {
|
||||
column = frappe.report_utils.prepare_field_from_column(column);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue