Skip to content

Commit

Permalink
Fix account dropdown not opening due to regression from #12377
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Nov 19, 2019
1 parent 5f0cba2 commit 9b9182b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const mapStateToProps = state => ({

const mapDispatchToProps = (dispatch, { status, items }) => ({
onOpen(id, onItemClick, dropdownPlacement, keyboard) {
dispatch(fetchRelationships([status.getIn(['account', 'id'])]));
if (status) {
dispatch(fetchRelationships([status.getIn(['account', 'id'])]));
}

dispatch(isUserTouching() ? openModal('ACTIONS', {
status,
Expand Down

0 comments on commit 9b9182b

Please sign in to comment.