Skip to content

Commit

Permalink
#2045 - Functional Groups: The functional group is not added to one o…
Browse files Browse the repository at this point in the history
…f the H3C
  • Loading branch information
Stanislav Permiakov authored and Stanislav Permiakov committed Jan 16, 2023
1 parent 3a606ba commit c6590bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ketcher-react/src/script/editor/tool/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class TemplateTool {
// on chain end
const atom = struct.atoms.get(ci.id)
const neiId = atom && struct.halfBonds.get(atom.neighbors[0])?.end
const nei: any = neiId && struct.atoms.get(neiId)
const nei: any = (neiId || neiId === 0) && struct.atoms.get(neiId)

angle = event.ctrlKey
? utils.calcAngle(nei?.pp, atom?.pp)
Expand Down

0 comments on commit c6590bd

Please sign in to comment.