fix: answer's count

This commit is contained in:
shuai 2023-03-06 14:14:17 +08:00
parent 888e873a7c
commit 001474b14d
1 changed files with 1 additions and 2 deletions

View File

@ -92,8 +92,7 @@ const Index = () => {
return v;
});
console.log(res);
setAnswers(res);
setAnswers({ ...res, count: res.list.length });
if (page > 0 || order) {
// scroll into view;
const element = document.getElementById('answerHeader');