Browse Source

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

master
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
8dfc45f757
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/javascript/mastodon/containers/dropdown_menu_container.js

+ 3
- 1
app/javascript/mastodon/containers/dropdown_menu_container.js View File

@ -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,

Loading…
Cancel
Save