Skip to content

Commit

Permalink
rm clg
Browse files Browse the repository at this point in the history
  • Loading branch information
konavivekramakrishna committed Oct 8, 2023
1 parent 435778f commit 1429b1c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Components/ExternalResult/ListFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function ListFilter(props: any) {
const { filter, onChange, closeFilter, dataList } = props;
const [wardList, setWardList] = useState<any[]>([]);
const [lsgList, setLsgList] = useState<any[]>([]);

const [wards, setWards] = useState<any[]>([]);
const [selectedLsgs, setSelectedLsgs] = useState<any[]>([]);
const authUser = useAuthUser();
Expand Down Expand Up @@ -161,9 +160,6 @@ export default function ListFilter(props: any) {
};
onChange(data);
dataList(selectedLsgs, wards);
console.log("data", data);
console.log("selectedLsgs", selectedLsgs);
console.log("wards", wards);
};

const sortByName = (items: any) => {
Expand All @@ -176,7 +172,6 @@ export default function ListFilter(props: any) {
const selectedLsgIds: any = selectedLsgs.map((e) => {
return e.id;
});

const selectedwards: any =
selectedLsgIds.length === 0
? wardList
Expand All @@ -189,10 +184,8 @@ export default function ListFilter(props: any) {

const handleChange = (event: any) => {
const { name, value } = event.target;

const filterData: any = { ...filterState };
filterData[name] = value;

setFilterState(filterData);
};

Expand Down

0 comments on commit 1429b1c

Please sign in to comment.