Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
lgessler committed Jun 15, 2022
1 parent 8927053 commit 7aec612
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/page-index/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -80,8 +81,8 @@ function DocumentList(props) {
<span className="sr-only">Loading...</span>
</div>
</div>
) : docs.length === 0 ? (
<div class="d-flex justify-content-center mt-4">
) : total === 0 ? (
<div className="d-flex justify-content-center mt-4">
No documents were found on your system. Please consult the documentation for notes on&nbsp;
<a href="https://gucorpling.github.io/midas-loop/#_importing">how to import documents</a>.
</div>
Expand Down

0 comments on commit 7aec612

Please sign in to comment.