mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
fix: skip if account tree doesn't have acc
This commit is contained in:
parent
95f40d4c20
commit
648a82ce08
@ -461,6 +461,10 @@ function setValueMapOnAccountTreeNodes(
|
|||||||
rangeGroupedMap: AccountNameValueMapMap
|
rangeGroupedMap: AccountNameValueMapMap
|
||||||
) {
|
) {
|
||||||
for (const name of rangeGroupedMap.keys()) {
|
for (const name of rangeGroupedMap.keys()) {
|
||||||
|
if (!accountTree[name]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const valueMap = rangeGroupedMap.get(name)!;
|
const valueMap = rangeGroupedMap.get(name)!;
|
||||||
accountTree[name].valueMap = valueMap;
|
accountTree[name].valueMap = valueMap;
|
||||||
accountTree[name].prune = false;
|
accountTree[name].prune = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user