Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Fix library search result rendering #1500

Merged
merged 2 commits into from
May 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/views/app/components/LibraryManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ class LibraryManager extends React.Component<ILibraryManagerProps, ILibraryManag
const isOperating = !!this.props.installingLibraryName || !!this.props.uninstallingLibraryName;

const itemRenderer = (index, key) => {
// On updating a list, ReactList can call itemRenderer with large indices.
if (index >= filteredLibraries.length) {
return null;
}
return (<LibraryItemView key={filteredLibraries[index].name} library={filteredLibraries[index]} {...libraryItemProps}/>);
};
const itemSizeEstimator = (index, cache) => {
Expand Down