about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-09-11 21:18:23 +0200
committerThibG <thib@sitedethib.com>2018-09-11 22:04:06 +0200
commit49734c03fd7623d007980a2c4d9a7ce4c46e78ae (patch)
treef29aac1c5997edf0e1f8183451f575e2da5ed826 /app/javascript/flavours/glitch
parent82b521b4c306d75530795bce9f6c706359e7339e (diff)
Fix action modal links
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r--app/javascript/flavours/glitch/containers/dropdown_menu_container.js2
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));