From b7067a8eb6938473ffaf22d814d8aabef69bcf53 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Sat, 31 Aug 2019 01:15:59 +0200 Subject: [PATCH] send empty array if sending fees to the ORD for all members --- client/src/scenes/IncidentsReport/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/src/scenes/IncidentsReport/index.js b/client/src/scenes/IncidentsReport/index.js index 2a2ebc6..27dc370 100644 --- a/client/src/scenes/IncidentsReport/index.js +++ b/client/src/scenes/IncidentsReport/index.js @@ -7,7 +7,7 @@ import MonthSelector from '../../components/MonthSelector'; import MemberIncidentsTables from '../../components/MemberIncidentsTables'; import GenerateFeesInORDButton from '../../components/GenerateFeesInORDButton'; -import { fetchIncidents, addFeesToOrd } from '../../store/actions'; +import { fetchIncidents } from '../../store/actions'; class IncidentsReport extends Component { state = {dateRange: null}; @@ -31,7 +31,6 @@ class IncidentsReport extends Component { membersMap[incident.memberId] = true; }); } - const memberIds = Object.keys(membersMap) || []; return ( @@ -41,7 +40,6 @@ class IncidentsReport extends Component {
@@ -61,8 +59,7 @@ const mapStateToProps = (state) => ({ }); const mapDispatchToProps = (dispatch) => ({ - fetchIncidents: (dateRange) => fetchIncidents(dispatch, dateRange), - addFeesToOrd: (dateRange, memberIds) => addFeesToOrd(dispatch, dateRange, memberIds), + fetchIncidents: (dateRange) => fetchIncidents(dispatch, dateRange) }); export default connect(mapStateToProps, mapDispatchToProps)(IncidentsReport);