diff --git a/app/static/js/ResourceLists/CorpusList.js b/app/static/js/ResourceLists/CorpusList.js index 00ddd7c168e0ad5532f39901004499f642f5a93b..a6207bafea66e9c1485ebba3750804a2d039c91f 100644 --- a/app/static/js/ResourceLists/CorpusList.js +++ b/app/static/js/ResourceLists/CorpusList.js @@ -17,7 +17,12 @@ class CorpusList extends ResourceList { }); }); 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(followedCorpora); this.isInitialized = true; }); }