Skip to content

Commit

Permalink
#4793 - Context menu for attachment point labels should contain only …
Browse files Browse the repository at this point in the history
…Delete option (#4828)
  • Loading branch information
Guch1g0v authored Jun 12, 2024
1 parent 2109b3c commit e44c1a9
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ const AtomMenuItems: FC<MenuItemsProps> = (props) => {
),
);

if (isAtomSuperatomLeavingGroup && onlyOneAtomSelected) {
return (
<Item {...props} onClick={handleDelete}>
Delete
</Item>
);
}

return (
<>
<Item {...props} onClick={handleEdit}>
Expand Down

0 comments on commit e44c1a9

Please sign in to comment.