Skip to content

Commit

Permalink
#4927 - Able to change attachment point label to an atom if it is sel…
Browse files Browse the repository at this point in the history
…ected first (#4938)
  • Loading branch information
Guch1g0v authored and Mikhail Vialov committed Jul 5, 2024
1 parent 88bac4d commit d907e24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ketcher-react/src/script/editor/tool/atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ class AtomTool implements Tool {
const updatedAtoms = editorSelection?.atoms?.filter(
(selectAtomId) =>
!deletedAtomsInSGroups?.includes(selectAtomId) &&
struct.atoms.has(selectAtomId),
struct.atoms.has(selectAtomId) &&
!Atom.isSuperatomLeavingGroupAtom(
this.editor.render.ctab.molecule,
selectAtomId,
),
);
action.mergeWith(fromAtomsAttrs(struct, updatedAtoms, atomProps, true));
editor.update(action);
Expand Down

0 comments on commit d907e24

Please sign in to comment.