diff --git a/src/pages/district.tsx b/src/pages/district.tsx index b89114e2..48e40e94 100644 --- a/src/pages/district.tsx +++ b/src/pages/district.tsx @@ -73,7 +73,7 @@ const District: React.FC = () => { useState(null); const [confirmationDialogOpen, setConfirmationDialogOpen] = useState(false); - const [districtFieldId, setDistrictFieldId] = useState("b61edfc6-3787-4079-86d3-37262bf23a9e"); + const [districtFieldId, setDistrictFieldId] = useState(""); const [loading, setLoading] = useState(false); const [selectedSort, setSelectedSort] = useState("Sort"); const [pageCount, setPageCount] = useState(Numbers.ONE); @@ -152,7 +152,7 @@ const District: React.FC = () => { const districtCodeArray = districts.map((item: any) => item.value); setDistrictCodeArr(districtCodeArray); - const districtFieldID = data?.result?.fieldId || "b61edfc6-3787-4079-86d3-37262bf23a9e"; + const districtFieldID = data?.result?.fieldId || ""; setDistrictFieldId(districtFieldID); } catch (error) { console.error("Error fetching districts", error); @@ -321,7 +321,6 @@ const response= await getCohortList(reqParams) // }); const response= await getCohortList(reqParams) - const response= await getCohortList(reqParams) const activeBlocks = response?.results?.cohortDetails || []; const activeBlocksCount = activeBlocks.filter(