diff --git a/ui/src/pages/Questions/Detail/index.tsx b/ui/src/pages/Questions/Detail/index.tsx index 610e3dcd..91654e05 100644 --- a/ui/src/pages/Questions/Detail/index.tsx +++ b/ui/src/pages/Questions/Detail/index.tsx @@ -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');