fix: set route options before navigating
This commit is contained in:
parent
7a6746bf32
commit
2e0c8ed069
1 changed files with 4 additions and 1 deletions
|
|
@ -31,7 +31,10 @@ export default class ShortcutWidget extends Widget {
|
|||
is_query_report: this.is_query_report,
|
||||
doctype: this.ref_doctype
|
||||
});
|
||||
|
||||
if (this.stats_filter) {
|
||||
const get_filter = new Function(`return ${this.stats_filter}`);
|
||||
frappe.route_options = get_filter();
|
||||
}
|
||||
frappe.set_route(route);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue