diff --git a/src/page-index/main.js b/src/page-index/main.js index 9500b75..d398ace 100644 --- a/src/page-index/main.js +++ b/src/page-index/main.js @@ -25,6 +25,7 @@ function DocumentList(props) { useEffect(() => { async function inner() { const result = await api.queryDocuments(queryParams.offset, queryParams.limit, queryParams.orderBy); + setDocs(result.docs) setTotal(result.total) setLoading(false); } @@ -80,8 +81,8 @@ function DocumentList(props) { Loading... - ) : docs.length === 0 ? ( -