diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-09-11 21:18:23 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-09-11 22:04:06 +0200 |
commit | 49734c03fd7623d007980a2c4d9a7ce4c46e78ae (patch) | |
tree | f29aac1c5997edf0e1f8183451f575e2da5ed826 /app/javascript/flavours | |
parent | 82b521b4c306d75530795bce9f6c706359e7339e (diff) |
Fix action modal links
Diffstat (limited to 'app/javascript/flavours')
-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)); |