Skip to content

Commit

Permalink
fix: Archived Articles Virtual Scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
bicstone committed Jun 22, 2024
1 parent 52f3c73 commit 2b6beab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/features/Timeline/TimelineVirtualizedList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ export const TimelineVirtualizedList = ({
// XXX: Gatsby でなぜかソートされないことがあるため
// クライアント側でもう一回ソートする
// 重くなるため早めに原因特定したい
const sortedItems = [...items.nodes].sort((a, b) => {
return Number(b.dateX) - Number(a.dateX);
});
const sortedItems = [...items.nodes];

const FallBack = (): JSX.Element => (
<div
Expand Down

0 comments on commit 2b6beab

Please sign in to comment.