0
0
Fork 0

Fix #634 - Only include innermost-level statuses in report UI

Fix #635 - Include the initially-reported status in report UI even if it's not
among the user's most recent statuses
This commit is contained in:
Eugen Rochko 2017-02-14 23:59:46 +01:00
parent e571a01853
commit 0a2427f79b
3 changed files with 7 additions and 3 deletions

View file

@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
isSubmitting: state.getIn(['reports', 'new', 'isSubmitting']),
account: getAccount(state, accountId),
comment: state.getIn(['reports', 'new', 'comment']),
statusIds: state.getIn(['timelines', 'accounts_timelines', accountId, 'items'], Immutable.List())
statusIds: Immutable.OrderedSet(state.getIn(['timelines', 'accounts_timelines', accountId, 'items'])).union(state.getIn(['reports', 'new', 'status_ids']))
};
};