fix(core-app): CB-874 navigation node children detection

This commit is contained in:
Wroud
2021-05-14 15:35:55 +03:00
parent b8f1ea8506
commit b60a0eecb4
@@ -270,7 +270,7 @@ export class NavTreeResource extends CachedMapResource<string, string[]> {
withDetails: metadata.withDetails,
});
navNodeInfo.hasChildren = navNodeChildren.length > 0;
navNodeInfo.hasChildren = navNodeInfo.hasChildren && navNodeChildren.length > 0;
return { navNodeChildren: navNodeChildren.slice(0, this.childrenLimit), navNodeInfo, parentPath };
}