commit | 01f56b867e13c837347fe26b3d2056a235e34d23 | [log] [tgz] |
---|---|---|
author | Suraj Shetty <surajshetty3416@gmail.com> | Thu Jun 20 18:07:58 2019 +0530 |
committer | Suraj Shetty <surajshetty3416@gmail.com> | Thu Jun 20 18:07:58 2019 +0530 |
tree | 3be14dd0b64f80708040f6828e2158a844fd831d | |
parent | b663966c6821beafa2c77db24c245538f814aed7 [diff] |
fix: Return empty array to avoid failure
diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index dcc15fb..f4bb64a 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js
@@ -66,7 +66,7 @@ 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'],