]> cat aescling's git repositories - mastodon.git/commitdiff
Fix account dropdown not opening due to regression from #12377 (#12430)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 19 Nov 2019 23:56:22 +0000 (00:56 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2019 23:56:22 +0000 (00:56 +0100)
app/javascript/mastodon/containers/dropdown_menu_container.js

index 1427f85289a5a1811da70f0a3271386d07842719..ab1823194be4c415302730b7671d78550810e2db 100644 (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,