mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-06-21 00:18:37 -04:00
UI: Make reports.list contain actual reports
This commit is contained in:
js
@ -58,7 +58,7 @@ module.exports = function(state = initialState, action) {
|
||||
for (var i = 0; i < action.reports.length; i++) {
|
||||
var report = action.reports[i];
|
||||
reports[report.ReportId] = report;
|
||||
list.push(report.ReportId);
|
||||
list.push(report);
|
||||
if (state.selected == report.ReportId)
|
||||
selected = state.selected;
|
||||
}
|
||||
@ -85,7 +85,7 @@ module.exports = function(state = initialState, action) {
|
||||
var list = [];
|
||||
for (var reportId in reports) {
|
||||
if (reports.hasOwnProperty(reportId))
|
||||
list.push(report.ReportId);
|
||||
list.push(report);
|
||||
}
|
||||
return assign({}, state, {
|
||||
map: reports,
|
||||
|
Reference in New Issue
Block a user