From: Eugen Rochko Date: Tue, 19 Nov 2019 23:56:22 +0000 (+0100) Subject: Fix account dropdown not opening due to regression from #12377 (#12430) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=8dfc45f757ed8995be0d16e88a1f1d6514dae677;p=mastodon.git Fix account dropdown not opening due to regression from #12377 (#12430) --- 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,