From 4a9631f8581b4112b750b3795a933fbbc639c297 Mon Sep 17 00:00:00 2001 From: Aleksei Proskurnov Date: Mon, 14 Oct 2024 19:08:06 +0200 Subject: [PATCH] fixed only bonds highlighting --- .../components/ContextMenu/menuItems/SelectionMenuItems.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ketcher-react/src/script/ui/views/components/ContextMenu/menuItems/SelectionMenuItems.tsx b/packages/ketcher-react/src/script/ui/views/components/ContextMenu/menuItems/SelectionMenuItems.tsx index 9049cf31af..c892da937a 100644 --- a/packages/ketcher-react/src/script/ui/views/components/ContextMenu/menuItems/SelectionMenuItems.tsx +++ b/packages/ketcher-react/src/script/ui/views/components/ContextMenu/menuItems/SelectionMenuItems.tsx @@ -31,9 +31,10 @@ const SelectionMenuItems: FC> = ( const handleDelete = useDelete(); const highlightBondWithColor = (color: string) => { const bondIds = props.propsFromTrigger?.bondIds || []; + const atomIds = props.propsFromTrigger?.atomIds || []; editor.highlights.create({ - atoms: [], + atoms: atomIds, bonds: bondIds, color: color === '' ? 'transparent' : color, });