fix: closes #1058 – orphaned archived headig

This commit is contained in:
Tom Moor
2019-10-12 13:40:05 -07:00
parent d4347b6f4b
commit fc201663c6

View File

@@ -74,8 +74,9 @@ class PaginatedDocumentList extends React.Component<Props> {
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 (
<React.Fragment>