mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-06-13 21:48:39 -04:00
UI: Make reports.list contain actual reports
This commit is contained in:
@ -152,8 +152,8 @@ class ReportsTab extends React.Component {
|
||||
if (!this.state.initialized) {
|
||||
if (selected == -1 &&
|
||||
nextProps.reports.list.length > 0) {
|
||||
nextProps.onSelectReport(nextProps.reports.map[nextProps.reports.list[0]]);
|
||||
nextProps.onTabulateReport(nextProps.reports.map[nextProps.reports.list[0]]);
|
||||
nextProps.onSelectReport(nextProps.reports.list[0]);
|
||||
nextProps.onTabulateReport(nextProps.reports.list[0]);
|
||||
this.setState({initialized: true});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user