Skip to content

Commit 5dfee5a

Browse files
committed
#2131 sorted work packages
1 parent 32254ac commit 5dfee5a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/frontend/src/pages/CalendarPage/DesignReviewCreateModal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { DatePicker } from '@mui/x-date-pickers';
1818
import { useToast } from '../../hooks/toasts.hooks';
1919
import { useState } from 'react';
2020
import { meetingStartTimePipe, wbsNamePipe } from '../../utils/pipes';
21-
import { TeamType, WbsNumber, WorkPackage, validateWBS, wbsPipe } from 'shared';
21+
import { TeamType, WbsNumber, WorkPackage, validateWBS, wbsNumComparator, wbsPipe } from 'shared';
2222
import { useCreateDesignReviews } from '../../hooks/design-reviews.hooks';
2323
import { useAllUsers } from '../../hooks/users.hooks';
2424
import ErrorPage from '../ErrorPage';
@@ -129,6 +129,8 @@ export const DesignReviewCreateModal: React.FC<DesignReviewCreateModalProps> = (
129129
});
130130
});
131131

132+
wbsDropdownOptions.sort((wp1, wp2) => wbsNumComparator(wp1.id, wp2.id));
133+
132134
const wbsAutocompleteOnChange = (
133135
_event: React.SyntheticEvent<Element, Event>,
134136
value: { label: string; id: string } | null

0 commit comments

Comments
 (0)