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