Initial refactor of the collections list and friends

This commit is contained in:
Andrew Bastin
2021-05-06 20:46:29 -04:00
parent 531a9c0bc8
commit 3888584b58
9 changed files with 184 additions and 383 deletions

View File

@@ -166,12 +166,7 @@ export default class TeamCollectionAdapter {
}
private async loadRootCollections(): Promise<void> {
const colls = (await rootCollectionsOfTeam(apolloClient, this.teamID))
.map(coll => { // TODO: Remove
coll.title = `debug-${coll.title}`
return coll
});
const colls = await rootCollectionsOfTeam(apolloClient, this.teamID)
this.collections$.next(colls);
}
@@ -386,7 +381,7 @@ export default class TeamCollectionAdapter {
.map<TeamCollection>(el => {
return {
id: el.id,
title: el.title,
title: `debug-${el.title}`,
children: null,
requests: null
}