fix: Return empty array to avoid failure
This commit is contained in:
parent
b663966c68
commit
01f56b867e
@ -66,7 +66,7 @@ $.extend(erpnext, {
|
|||||||
|
|
||||||
get_dimension_filters: async function() {
|
get_dimension_filters: async function() {
|
||||||
if (!frappe.model.can_read('Accounting Dimension')) {
|
if (!frappe.model.can_read('Accounting Dimension')) {
|
||||||
return
|
return [];
|
||||||
}
|
}
|
||||||
let dimensions = await frappe.db.get_list('Accounting Dimension', {
|
let dimensions = await frappe.db.get_list('Accounting Dimension', {
|
||||||
fields: ['label', 'fieldname', 'document_type'],
|
fields: ['label', 'fieldname', 'document_type'],
|
||||||
|
Loading…
Reference in New Issue
Block a user