1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-02 20:28:38 -04:00

Stop creating lists in containers

Create them only when needed in reducers instead
This commit is contained in:
2017-06-21 21:27:05 -04:00
parent cd9ad1d4d7
commit 25b04a4f0f
5 changed files with 57 additions and 29 deletions

View File

@ -4,14 +4,8 @@ var ReportActions = require('../actions/ReportActions');
var ReportsTab = require('../components/ReportsTab');
function mapStateToProps(state) {
var report_list = [];
for (var reportId in state.reports.map) {
if (state.reports.map.hasOwnProperty(reportId))
report_list.push(state.reports.map[reportId]);
}
return {
reports: state.reports,
report_list: report_list
reports: state.reports
}
}