Skip to content

Commit

Permalink
fix: rendering error in gallery view with filter changes (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sky-FE authored Dec 21, 2024
1 parent 8b3df68 commit 3e0ab87
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ export const GalleryViewBase = () => {
{Array.from({ length: columnsPerRow }).map((_, i) => {
const actualIndex = virtualRow.index * columnsPerRow + i;
const card = loadedRecordMap[actualIndex];
const isOverflowItem = virtualRow.index * columnsPerRow + i >= rowCount;

return card ? (
return !isOverflowItem && card ? (
<SortableItem key={card.id} id={card.id}>
<Card card={card} />
</SortableItem>
Expand Down

0 comments on commit 3e0ab87

Please sign in to comment.