mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Subject and question browser merge, handling multiple dbs
This commit is contained in:
parent
57f0730f3e
commit
fb3bf29fc4
11 changed files with 232 additions and 178 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue