Add followed corpora to Corpus List

This commit is contained in:
Inga Kirschnick 2023-03-31 14:28:11 +02:00
parent 451a0a3955
commit 4d2d4fcc40

View File

@ -17,7 +17,12 @@ class CorpusList extends ResourceList {
}); });
}); });
app.getUser(this.userId).then((user) => { app.getUser(this.userId).then((user) => {
let followedCorpora = [];
for (let cfa of Object.values(user.corpus_follower_associations)) {
followedCorpora.push(cfa.corpus);
}
this.add(Object.values(user.corpora)); this.add(Object.values(user.corpora));
this.add(followedCorpora);
this.isInitialized = true; this.isInitialized = true;
}); });
} }