Skip to content

Commit

Permalink
CE-211 sort community dropdown alphabetically (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
marqueone-ps authored Nov 14, 2023
1 parent 8ef134d commit 63e78db
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import notificationInvalid from "../../../../../assets/images/notification-inval
import { useSelector } from "react-redux";
import {
selectAgencyDropdown,
selectAreaCodeDropdown,
selectAttractantCodeDropdown,
selectCommunityCodeDropdown,
selectComplaintTypeDropdown,
selectHwcrNatureOfComplaintCodeDropdown,
selectSpeciesCodeDropdown,
Expand All @@ -44,7 +44,6 @@ import { ToggleError } from "../../../../common/toast";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import { useNavigate } from "react-router-dom";
import { DropdownOption } from "../../../../types/app/drop-down-option";

export const CreateComplaint: FC = () => {
const dispatch = useAppDispatch();
Expand Down Expand Up @@ -836,7 +835,8 @@ export const CreateComplaint: FC = () => {
selectHwcrNatureOfComplaintCodeDropdown,
) as Option[];
const complaintTypeCodes = useSelector(selectComplaintTypeDropdown) as Option[];
const areaCodes = useSelector(selectAreaCodeDropdown) as DropdownOption[];
const areaCodes = useAppSelector(selectCommunityCodeDropdown)

const attractantCodes = useSelector(selectAttractantCodeDropdown) as Option[];
const referredByAgencyCodes = useSelector(selectAgencyDropdown) as Option[];
const violationTypeCodes = useSelector(
Expand Down
Loading

0 comments on commit 63e78db

Please sign in to comment.