diff --git a/src/pages/selectSchedule/components/selectPriority/PriorityDropdown.tsx b/src/pages/selectSchedule/components/selectPriority/PriorityDropdown.tsx index aa2fd9c0..f1b2a5ee 100644 --- a/src/pages/selectSchedule/components/selectPriority/PriorityDropdown.tsx +++ b/src/pages/selectSchedule/components/selectPriority/PriorityDropdown.tsx @@ -28,9 +28,11 @@ function PriorityDropdown() { return Number(month + formatDay + hour + minute); }; - const sortedSlots = Object.entries(selectedSlots).toSorted( - (a, b) => parseDateTime(a[1].date, a[1].startSlot) - parseDateTime(b[1].date, b[1].startSlot), - ); + const sortedSlots = Object.entries(selectedSlots) + .slice() + .sort( + (a, b) => parseDateTime(a[1].date, a[1].startSlot) - parseDateTime(b[1].date, b[1].startSlot), + ); const formatDate = (date: string) => { const [month, day, dayOfWeek] = date.split('/');