Return early if filters not initialized

This commit is contained in:
Faris Ansari 2018-07-20 16:31:01 +05:30
parent 5986d59b01
commit e7f864a4dd

View File

@ -80,6 +80,7 @@ frappe.query_reports["General Ledger"] = {
"label": __("Party"),
"fieldtype": "MultiSelect",
get_data: function() {
if (!frappe.query_report.filters) return;
var party_type = frappe.query_report.get_filter_value('party_type');
var parties = frappe.query_report.get_filter_value('party');
if(!party_type) return;