Skip to content
Snippets Groups Projects
Commit 4d2d4fcc authored by Inga Kirschnick's avatar Inga Kirschnick
Browse files

Add followed corpora to Corpus List

parent 451a0a39
No related branches found
No related tags found
No related merge requests found
......@@ -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;
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment