Fix react warning, fix dom issues
This commit is contained in:
@ -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>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user