Skip to content

Commit

Permalink
Fix [Projects] an attempt to delete / archive project redirects to pr…
Browse files Browse the repository at this point in the history
…oject screen (#2092)
  • Loading branch information
mariana-furyk authored and ilan7empest committed Dec 4, 2023
1 parent 2b5bb24 commit f24dd57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elements/ActionMenuItem/ActionsMenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const ActionsMenuItem = ({ dataItem, index, isIconDisplayed, menuItem }) => {
data-testid={`actions-menu__option-${index}`}
className={menuClassNames}
onClick={event => {
event.stopPropagation()

if (!menuItem.disabled) {
menuItem.onClick(dataItem)
} else {
event.stopPropagation()
}
}}
>
Expand Down

0 comments on commit f24dd57

Please sign in to comment.