Skip to content

Commit

Permalink
fix: removed the sorting-addition
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 authored and martinstark committed Jul 8, 2024
1 parent f1a96ac commit f4a3b3e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/landing-page/use-fetch-production-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ export const useFetchProductionList = () => {

setProductions(
result

// Make sure list is correctly sorted
.sort(
(a, b) =>
parseInt(b.productionId, 10) - parseInt(a.productionId, 10)
)
// pick last 10 items and display newest first
.slice(0, 10)
);
Expand Down

0 comments on commit f4a3b3e

Please sign in to comment.