diff --git a/src/containers/Organization/Project/ProjectReport.jsx b/src/containers/Organization/Project/ProjectReport.jsx index 75a6f6a5..d8ffe243 100644 --- a/src/containers/Organization/Project/ProjectReport.jsx +++ b/src/containers/Organization/Project/ProjectReport.jsx @@ -31,6 +31,7 @@ import { import ViewColumnIcon from "@mui/icons-material/ViewColumn"; import MailIcon from "@mui/icons-material/Mail"; import { ColumnSelector } from "common"; +import constants from "redux/constants"; const ProjectReport = () => { const { projectId } = useParams(); @@ -69,6 +70,13 @@ const ProjectReport = () => { dispatch(APITransport(apiObj)); }; + useEffect(() => { + return () => { + setTableData([]); + dispatch({ type: constants.GET_PROJECT_REPORTS, payload: [] }); + }; + }, [dispatch]); + useEffect(() => { let rawData = [];