[Glitch] Include preview cards in status entity in REST API

Port 795f0107d2 to glitch-soc
This commit is contained in:
Thibaut Girka
2018-10-29 14:44:04 +01:00
committed by ThibG
parent 7f24242ef6
commit ac9780b844
6 changed files with 54 additions and 11 deletions

View File

@@ -2,7 +2,7 @@ import { connect } from 'react-redux';
import Card from '../components/card';
const mapStateToProps = (state, { statusId }) => ({
card: state.getIn(['cards', statusId], null),
card: state.getIn(['statuses', statusId, 'card'], null),
});
export default connect(mapStateToProps)(Card);