Skip to content

Commit

Permalink
fix: loop content sorting not working (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas authored Aug 7, 2024
1 parent 7a181f3 commit dc4c80e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ export const useGetLoopContent = (loopNo: string) => {
throw new Error();
}
const loopContent = await response.json() as LoopContent[]
return loopContent.sort((a, b) => {
return compareMcStatus(a.mechanicalCompletionStatus as McStatus | undefined, b.mechanicalCompletionStatus as McStatus | undefined)
})
return loopContent.sort((a, b) => compareMcStatus(a.clStatus as McStatus | undefined, b.clStatus as McStatus | undefined))
},
});

Expand Down

0 comments on commit dc4c80e

Please sign in to comment.