Better data management for atlases

This commit is contained in:
Jori Lallo
2016-05-18 01:13:52 -07:00
parent 582b937961
commit 6b3e56a4cf
6 changed files with 63 additions and 34 deletions

View File

@@ -37,7 +37,7 @@ const mapStateToProps = (state) => {
return {
teamId: state.team ? state.team.id : null,
isLoading: state.atlases.isLoading,
items: state.atlases.items,
items: Array.isArray(state.atlases.result) ? state.atlases.result.map((id) => state.atlases.entities.atlases[id]) : [], // reselect
}
};