fix: closes #1058 – orphaned archived headig
This commit is contained in:
@@ -74,8 +74,9 @@ class PaginatedDocumentList extends React.Component<Props> {
|
|||||||
const { empty, heading, documents, fetch, options, ...rest } = this.props;
|
const { empty, heading, documents, fetch, options, ...rest } = this.props;
|
||||||
const showLoading =
|
const showLoading =
|
||||||
this.isFetching && !this.isFetchingMore && !this.isInitiallyLoaded;
|
this.isFetching && !this.isFetchingMore && !this.isInitiallyLoaded;
|
||||||
const showEmpty = !documents.length || showLoading;
|
const showEmpty = !documents.length && !showLoading;
|
||||||
const showList = (this.isLoaded || this.isInitiallyLoaded) && !showLoading;
|
const showList =
|
||||||
|
(this.isLoaded || this.isInitiallyLoaded) && !showLoading && !showEmpty;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
|
|||||||
Reference in New Issue
Block a user