2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

fix: skip if account tree doesn't have acc

This commit is contained in:
18alantom 2022-08-23 16:47:57 +05:30
parent 95f40d4c20
commit 648a82ce08

View File

@ -461,6 +461,10 @@ function setValueMapOnAccountTreeNodes(
rangeGroupedMap: AccountNameValueMapMap
) {
for (const name of rangeGroupedMap.keys()) {
if (!accountTree[name]) {
continue;
}
const valueMap = rangeGroupedMap.get(name)!;
accountTree[name].valueMap = valueMap;
accountTree[name].prune = false;