Instead of throwing error, just return

This commit is contained in:
Shreya 2018-05-16 17:30:58 +05:30
parent df9516e906
commit 63d14cfac8

View File

@ -84,9 +84,7 @@ frappe.query_reports["General Ledger"] = {
var party_type = frappe.query_report_filters_by_name.party_type.get_value();
var parties = frappe.query_report_filters_by_name.party.get_value();
if(!party_type) {
frappe.throw(__("Please select Party Type first"));
}
if(!party_type) return;
const values = parties.split(/\s*,\s*/).filter(d => d);
const txt = parties.match(/[^,\s*]*$/)[0] || '';