From 7aec61261c6f6d5200540fdb66e34ee3b05cbec3 Mon Sep 17 00:00:00 2001 From: Luke Gessler Date: Wed, 15 Jun 2022 11:42:19 -0400 Subject: [PATCH] oops --- src/page-index/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ? ( -
+ ) : total === 0 ? ( +
No documents were found on your system. Please consult the documentation for notes on  how to import documents.