Include preview cards in status entity in REST API (#9120)
* Include preview cards in status entity in REST API * Display preview card in-stream * Improve in-stream display of preview cards
This commit is contained in:
parent
6f78500d4f
commit
795f0107d2
10 changed files with 61 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue