Skip to content

Commit

Permalink
💫 Update: Ex - Fix LogListDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Oct 2, 2024
1 parent e050672 commit 62339b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/components/LogListDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const LogListDisplay = React.forwardRef<
const maxItemsToShow = props.maxItemsToShow ?? 15;

const recentEventsSorted = events.sort((a, b) => a.index - b.index);
const recentEvents = recentEventsSorted.reverse().slice(-maxItemsToShow);
const recentEvents = recentEventsSorted.slice(-maxItemsToShow);

React.useImperativeHandle(ref, () => ({
addItem: (itemTitle) => {
Expand Down

0 comments on commit 62339b9

Please sign in to comment.