Browse Source

Fix action modal links

closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
49734c03fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/containers/dropdown_menu_container.js

+ 1
- 1
app/javascript/flavours/glitch/containers/dropdown_menu_container.js View File

@ -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));

Loading…
Cancel
Save