diff --git a/src/containers/Organization/OrganizationReport.jsx b/src/containers/Organization/OrganizationReport.jsx index c81595c5..09f39866 100644 --- a/src/containers/Organization/OrganizationReport.jsx +++ b/src/containers/Organization/OrganizationReport.jsx @@ -78,6 +78,7 @@ const OrganizationReport = () => { const SearchProject = useSelector((state) => state.searchList.data); const handleChangeReportsLevel = (event) => { + setTableData([]); setReportsLevel(event.target.value); setlanguageLevelStats(""); setOffset(0); @@ -224,7 +225,7 @@ const OrganizationReport = () => { createReportColumns(rawData); // eslint-disable-next-line - }, [reportData, languageLevelsStats, reportsLevel]); + }, [reportData, languageLevelsStats]); const createReportColumns = (rawData) => { let tempColumns = []; diff --git a/src/containers/Organization/Project/ProjectReport.jsx b/src/containers/Organization/Project/ProjectReport.jsx index 5ac319dc..3b07d7af 100644 --- a/src/containers/Organization/Project/ProjectReport.jsx +++ b/src/containers/Organization/Project/ProjectReport.jsx @@ -58,6 +58,7 @@ const ProjectReport = () => { const SearchProject = useSelector((state) => state.searchList.data); const handleChangeReportsLevel = (event) => { + setTableData([]); setreportsLevel(event.target.value); setlanguageLevelStats(""); setOffset(0); @@ -140,7 +141,7 @@ const ProjectReport = () => { createReportColumns(rawData); // eslint-disable-next-line - }, [projectReportData, languageLevelsStats, reportsLevel]); + }, [projectReportData, languageLevelsStats]); const createReportColumns = (rawData) => { let tempColumns = [];