From fc201663c65afa7d050fa6f84fefcdf54aa06e83 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 12 Oct 2019 13:40:05 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20closes=20#1058=20=E2=80=93=20orphaned=20?= =?UTF-8?q?archived=20headig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/PaginatedDocumentList.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/PaginatedDocumentList.js b/app/components/PaginatedDocumentList.js index 17cbe5878..aa0f6e2c1 100644 --- a/app/components/PaginatedDocumentList.js +++ b/app/components/PaginatedDocumentList.js @@ -74,8 +74,9 @@ class PaginatedDocumentList extends React.Component { const { empty, heading, documents, fetch, options, ...rest } = this.props; const showLoading = this.isFetching && !this.isFetchingMore && !this.isInitiallyLoaded; - const showEmpty = !documents.length || showLoading; - const showList = (this.isLoaded || this.isInitiallyLoaded) && !showLoading; + const showEmpty = !documents.length && !showLoading; + const showList = + (this.isLoaded || this.isInitiallyLoaded) && !showLoading && !showEmpty; return (