diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/containers/dropdown_menu_container.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/containers/dropdown_menu_container.js b/app/javascript/flavours/glitch/containers/dropdown_menu_container.js index dccd93dab..626d500f0 100644 --- a/app/javascript/flavours/glitch/containers/dropdown_menu_container.js +++ b/app/javascript/flavours/glitch/containers/dropdown_menu_container.js @@ -18,7 +18,7 @@ const mapDispatchToProps = (dispatch, { status, items }) => ({ (item, i) => item ? { ...item, name: `${item.text}-${i}`, - onClick: (e) => { return onItemClick(i, e) }, + onClick: item.action ? ((e) => { return onItemClick(i, e) }) : null, } : null ), }) : openDropdownMenu(id, dropdownPlacement)); |