From a5c1c9e7ce5d6bd2f7aee9b3ce8005f9bba3c060 Mon Sep 17 00:00:00 2001 From: kartikvirendrar Date: Tue, 30 Jul 2024 15:08:37 +0530 Subject: [PATCH] fetch languages for org reports filter --- src/containers/Organization/OrganizationReport.jsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/containers/Organization/OrganizationReport.jsx b/src/containers/Organization/OrganizationReport.jsx index b02d8e97..c81595c5 100644 --- a/src/containers/Organization/OrganizationReport.jsx +++ b/src/containers/Organization/OrganizationReport.jsx @@ -34,6 +34,7 @@ import { FetchOrganizationReportsAPI, DownloadOrganizationReportsAPI, updateOrgSelectedFilter, + FetchSupportedLanguagesAPI, } from "redux/actions"; //Themes @@ -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);