Skip to content

Commit

Permalink
Merge pull request #767 from AI4Bharat/reports4
Browse files Browse the repository at this point in the history
fetch languages for org reports filter
  • Loading branch information
aparna-aa authored Jul 30, 2024
2 parents ad0755b + a5c1c9e commit 4ec9489
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/containers/Organization/OrganizationReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
FetchOrganizationReportsAPI,
DownloadOrganizationReportsAPI,
updateOrgSelectedFilter,
FetchSupportedLanguagesAPI,
} from "redux/actions";

//Themes
Expand Down Expand Up @@ -129,6 +130,14 @@ const OrganizationReport = () => {
{handleTaskReportSubmit();}
}, [orgSelectedFilters]);

useEffect(() => {
const transcriptLangObj = new FetchSupportedLanguagesAPI("TRANSCRIPTION");
dispatch(APITransport(transcriptLangObj));

const translationLangObj = new FetchSupportedLanguagesAPI("TRANSLATION");
dispatch(APITransport(translationLangObj));
}, [])

const handleChangelanguageLevelStats = (event) => {
setlanguageLevelStats(event.target.value);
setOffset(0);
Expand Down

0 comments on commit 4ec9489

Please sign in to comment.