about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-11-20 00:56:22 +0100
committerGitHub <noreply@github.com>2019-11-20 00:56:22 +0100
commit8dfc45f757ed8995be0d16e88a1f1d6514dae677 (patch)
tree117d7e6330838789eb334bcbffcc83727e1f79a2
parent5f0cba25618af0f96999c7aea063e4918c937f23 (diff)
Fix account dropdown not opening due to regression from #12377 (#12430)
-rw-r--r--app/javascript/mastodon/containers/dropdown_menu_container.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/containers/dropdown_menu_container.js b/app/javascript/mastodon/containers/dropdown_menu_container.js
index 1427f8528..ab1823194 100644
--- a/app/javascript/mastodon/containers/dropdown_menu_container.js
+++ b/app/javascript/mastodon/containers/dropdown_menu_container.js
@@ -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,