From 49734c03fd7623d007980a2c4d9a7ce4c46e78ae Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 11 Sep 2018 21:18:23 +0200 Subject: [PATCH] Fix action modal links --- .../flavours/glitch/containers/dropdown_menu_container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/containers/dropdown_menu_container.js b/app/javascript/flavours/glitch/containers/dropdown_menu_container.js index dccd93dab0b..626d500f094 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));