fix: Return empty array to avoid failure

This commit is contained in:
Suraj Shetty 2019-06-20 18:07:58 +05:30
parent b663966c68
commit 01f56b867e

View File

@ -66,7 +66,7 @@ $.extend(erpnext, {
get_dimension_filters: async function() {
if (!frappe.model.can_read('Accounting Dimension')) {
return
return [];
}
let dimensions = await frappe.db.get_list('Accounting Dimension', {
fields: ['label', 'fieldname', 'document_type'],