Skip to content

Commit

Permalink
Merge branch 'release-1.0.0' of github.com:tekdi/shiksha-admin into m…
Browse files Browse the repository at this point in the history
…erge-release-1.0.0-into-main
  • Loading branch information
itsvick committed Nov 27, 2024
1 parent a2b4cd7 commit 37f2953
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/district.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const District: React.FC = () => {
useState<DistrictDetail | null>(null);
const [confirmationDialogOpen, setConfirmationDialogOpen] =
useState<boolean>(false);
const [districtFieldId, setDistrictFieldId] = useState<string>("b61edfc6-3787-4079-86d3-37262bf23a9e");
const [districtFieldId, setDistrictFieldId] = useState<string>("");
const [loading, setLoading] = useState<boolean>(false);
const [selectedSort, setSelectedSort] = useState("Sort");
const [pageCount, setPageCount] = useState<number>(Numbers.ONE);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 37f2953

Please sign in to comment.