Fix react warning, fix dom issues

This commit is contained in:
Daniel Lautzenheiser
2023-04-06 16:19:36 -04:00
parent 4264218439
commit 2469b8bbfe
5 changed files with 32 additions and 15 deletions

View File

@ -122,10 +122,14 @@ const EntryListing = ({
if (viewStyle === 'VIEW_STYLE_LIST') {
return (
<Table columns={!isSingleCollectionInList ? ['Collection', ...summaryFields] : summaryFields}>
{renderedCards}
<>
<Table
columns={!isSingleCollectionInList ? ['Collection', ...summaryFields] : summaryFields}
>
{renderedCards}
</Table>
{hasMore && handleLoadMore && <Waypoint key={page} onEnter={handleLoadMore} />}
</Table>
</>
);
}

View File

@ -40,13 +40,12 @@ const Sidebar: FC<TranslateProps> = ({ t }) => {
if ('nested' in collection) {
return (
<li key={`nested-${collectionName}`}>
<NestedCollection
collection={collection}
filterTerm={filterTerm}
data-testid={collectionName}
/>
</li>
<NestedCollection
key={`nested-${collectionName}`}
collection={collection}
filterTerm={filterTerm}
data-testid={collectionName}
/>
);
}