Merge branch 'public-corpus' of gitlab.ub.uni-bielefeld.de:sfb1288inf/nopaque into public-corpus

This commit is contained in:
Patrick Jentsch 2023-04-03 15:25:59 +02:00
commit 6e6fa49f79

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;
}); });
} }