From 8dfc45f757ed8995be0d16e88a1f1d6514dae677 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 20 Nov 2019 00:56:22 +0100 Subject: Fix account dropdown not opening due to regression from #12377 (#12430) --- app/javascript/mastodon/containers/dropdown_menu_container.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- cgit