fix: set route options before navigating

This commit is contained in:
Shivam Mishra 2020-05-29 12:56:07 +05:30
parent 7a6746bf32
commit 2e0c8ed069

View file

@ -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);
});
}