forked from DebaucheryLibrarian/traxxx
Hiding scroll buttons on small screens. Fixed channel count on overview.
This commit is contained in:
@@ -122,8 +122,15 @@ function curateEntity(entity, parent, releases) {
|
||||
children: [],
|
||||
};
|
||||
|
||||
if (entity.children) {
|
||||
if (entity.children.nodes) {
|
||||
curatedEntity.children = entity.children.nodes.map(childEntity => curateEntity(childEntity, curatedEntity));
|
||||
}
|
||||
|
||||
curatedEntity.childrenTotal = entity.children.totalCount;
|
||||
}
|
||||
|
||||
if (entity.parent || parent) curatedEntity.parent = curateEntity(entity.parent || parent);
|
||||
if (entity.children) curatedEntity.children = entity.children.map(childEntity => curateEntity(childEntity, curatedEntity));
|
||||
if (releases) curatedEntity.releases = releases.map(release => curateRelease(release));
|
||||
|
||||
return curatedEntity;
|
||||
|
||||
Reference in New Issue
Block a user