Fix account dropdown not opening due to regression from #12377 (#12430)

th-downstream
Eugen Rochko 5 years ago committed by GitHub
parent 772f4d649e
commit c4601b8eb6

@ -14,7 +14,9 @@ const mapStateToProps = state => ({
const mapDispatchToProps = (dispatch, { status, items }) => ({ const mapDispatchToProps = (dispatch, { status, items }) => ({
onOpen(id, onItemClick, dropdownPlacement, keyboard) { onOpen(id, onItemClick, dropdownPlacement, keyboard) {
dispatch(fetchRelationships([status.getIn(['account', 'id'])])); if (status) {
dispatch(fetchRelationships([status.getIn(['account', 'id'])]));
}
dispatch(isUserTouching() ? openModal('ACTIONS', { dispatch(isUserTouching() ? openModal('ACTIONS', {
status, status,

Loading…
Cancel
Save