return bucket[componentKey];
}
-export function addComponentChildren (componentKey, children, total) {
- childrenBucket[componentKey] = { children, total };
+export function addComponentChildren (componentKey, children, total, page) {
+ childrenBucket[componentKey] = { children, total, page };
}
export function getComponentChildren (componentKey) {
if (existing) {
return Promise.resolve({
components: existing.children,
- total: existing.total
+ total: existing.total,
+ page: existing.page
});
}
.then(prepareChildren)
.then(expandRootDir(metrics))
.then(r => {
- addComponentChildren(componentKey, r.components, r.total);
+ addComponentChildren(componentKey, r.components, r.total, r.page);
storeChildrenBase(r.components);
storeChildrenBreadcrumbs(componentKey, r.components);
return r;
.then(prepareChildren)
.then(expandRootDir(metrics))
.then(r => {
- addComponentChildren(componentKey, r.components, r.total);
+ addComponentChildren(componentKey, r.components, r.total, r.page);
storeChildrenBase(r.components);
storeChildrenBreadcrumbs(componentKey, r.components);
return r;