Skip to content

Commit

Permalink
fix: sider
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Sep 28, 2021
1 parent 4519a85 commit 68668e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/account/account_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ frappe.treeview_settings["Account"] = {
on_get_node: function(nodes, deep=false) {
if (frappe.boot.user.can_read.indexOf("GL Entry") == -1) return;

let accounts = [];
if (deep) {
// in case of `get_all_nodes`
accounts = nodes.reduce((acc, node) => [...acc, ...node.data], []);
Expand Down

0 comments on commit 68668e9

Please sign in to comment.