Don't show Load More if nothing to show

This commit is contained in:
Laurent Nguyen 2024-04-23 13:35:41 +02:00
parent b2c05fa784
commit 13462646f6

View File

@ -1634,6 +1634,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
size={tableContainerSizePx} size={tableContainerSizePx}
columnHeaders={columnHeaders} columnHeaders={columnHeaders}
/> />
{tableItems.length > 0 && (
<a <a
className="loadMore" className="loadMore"
role="button" role="button"
@ -1642,6 +1643,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
> >
Load more Load more
</a> </a>
)}
</div> </div>
</div> </div>
<div style={{ minWidth: "20%", width: "100%" }}> <div style={{ minWidth: "20%", width: "100%" }}>