Subject and question browser merge, handling multiple dbs

This commit is contained in:
mrfry 2020-12-26 14:50:39 +01:00
parent 57f0730f3e
commit fb3bf29fc4
11 changed files with 232 additions and 178 deletions

View file

@ -97,15 +97,13 @@ export default function RankList() {
setRanklist(null)
getListFromServer(since)
.then((data) => {
console.log(data)
setRanklist(data.list || [])
setSum(data.sum || {})
if (data.selfuserId) {
setSelfUserId(data.selfuserId)
}
})
.catch((error) => {
console.error(error)
.catch(() => {
setRanklist(null)
})
}