Skip to content

Commit

Permalink
Merge pull request #769 from AI4Bharat/reports4
Browse files Browse the repository at this point in the history
add loader for org reports
  • Loading branch information
aparna-aa authored Jul 31, 2024
2 parents 53dc4b4 + ad1e21c commit e698047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/containers/Organization/OrganizationReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const OrganizationReport = () => {
const SearchProject = useSelector((state) => state.searchList.data);

const handleChangeReportsLevel = (event) => {
setTableData([]);
setReportsLevel(event.target.value);
setlanguageLevelStats("");
setOffset(0);
Expand Down Expand Up @@ -224,7 +225,7 @@ const OrganizationReport = () => {
createReportColumns(rawData);

// eslint-disable-next-line
}, [reportData, languageLevelsStats, reportsLevel]);
}, [reportData, languageLevelsStats]);

const createReportColumns = (rawData) => {
let tempColumns = [];
Expand Down
3 changes: 2 additions & 1 deletion src/containers/Organization/Project/ProjectReport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const ProjectReport = () => {
const SearchProject = useSelector((state) => state.searchList.data);

const handleChangeReportsLevel = (event) => {
setTableData([]);
setreportsLevel(event.target.value);
setlanguageLevelStats("");
setOffset(0);
Expand Down Expand Up @@ -140,7 +141,7 @@ const ProjectReport = () => {
createReportColumns(rawData);

// eslint-disable-next-line
}, [projectReportData, languageLevelsStats, reportsLevel]);
}, [projectReportData, languageLevelsStats]);

const createReportColumns = (rawData) => {
let tempColumns = [];
Expand Down

0 comments on commit e698047

Please sign in to comment.