Skip to content

Commit fe1de08

Browse files
authored
fix: 잘못 정렬되고 있던 신청 현황 수정 (#262)
2 parents b313a94 + c4bc918 commit fe1de08

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

service-manager/src/components/apply-list/ApplyList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export const ApplyList = ({ eventId }: ApplyListProps) => {
2323
.filter(
2424
(registration) => registration.sectorNum === sector.sectorNumber,
2525
)
26-
.sort((a, b) => (a.id < b.id ? -1 : 1))
2726
.map((registration, index) => ({
2827
구간: registration.sectorNum,
2928
순서: index + 1,

service-manager/src/hooks/react-query/useRegistration.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export const useAllRegistrationQuery = (eventId: string) => {
66
queryKey: ['allRegistration', eventId],
77
queryFn: () => getAllRegistration(eventId),
88
});
9-
return { registrations: data.sort((a, b) => a.id - b.id) };
9+
return { registrations: data };
1010
};

0 commit comments

Comments
 (0)