Skip to content

Commit

Permalink
Merge pull request #1392 from massenergize/fix-impact-page-list-view
Browse files Browse the repository at this point in the history
Fix: List view on ImpactPage
  • Loading branch information
abdullai-t authored Jul 11, 2024
2 parents f80aa94 + d7dd8b9 commit 13e23cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const PAGE_ESSENTIALS = {
"graphs.communities.impact",
"tag_collections.list",
"graphs.actions.completed",
"communities.actions.completed"
],
},
ABOUT_US: {
Expand Down
8 changes: 5 additions & 3 deletions src/components/Pages/ImpactPage/ImpactPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ErrorPage from "./../Errors/ErrorPage";
import { connect } from "react-redux";
import LoadingCircle from "../../Shared/LoadingCircle";
import {
reduxLoadCommunitiesStats,
reduxLoadCommunitiesStats, reduxLoadCommunityActionList,
reduxLoadCommunityData,
reduxLoadTagCols,
reduxMarkRequestAsDone,
Expand Down Expand Up @@ -41,10 +41,11 @@ class ImpactPage extends React.Component {
PAGE_ESSENTIALS.IMPACT_PAGE.routes.map((route) => apiCall(route, payload))
)
.then((response) => {
const [stats, tagCols, comData] = response;
const [stats, tagCols, comData,communityActionList] = response;
this.props.reduxLoadCommunitiesStats(stats.data);
this.props.loadTagCollections(tagCols.data);
this.props.loadCommunityData(comData.data);
this.props.setCommunityActionListInRedux(communityActionList?.data);
this.props.reduxMarkRequestAsDone({
...pageRequests,
[PAGE_ESSENTIALS.IMPACT_PAGE.key]: { loaded: true },
Expand Down Expand Up @@ -450,7 +451,8 @@ const mapStoreToProps = (store) => {
export default connect(mapStoreToProps, {
reduxLoadCommunitiesStats,
loadTagCollections: reduxLoadTagCols,
loadCommunityData: reduxLoadCommunityData,
loadCommunityData: reduxLoadCommunityData,
setCommunityActionListInRedux: reduxLoadCommunityActionList,
reduxMarkRequestAsDone
})(withRouter(ImpactPage));

Expand Down

0 comments on commit 13e23cb

Please sign in to comment.