Skip to content

Commit c1c6c77

Browse files
reverse event order in panel (from last to more recent)
1 parent de4e602 commit c1c6c77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/app-builder/src/components/CaseManager/CaseEvents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function CaseEvents({ events, includeEventTypes, excludeEventTypes, dueAt
4242

4343
const allEvents = useMemo(() => {
4444
return [...events].sort((a, b) => {
45-
const byDate = new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();
45+
const byDate = new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime();
4646
if (byDate !== 0) return byDate;
4747
return a.id.localeCompare(b.id);
4848
});

0 commit comments

Comments
 (0)