Skip to content

Commit

Permalink
#3129 - Full template preview following mouse cursor 4
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinEpam23 committed Sep 6, 2023
1 parent b6ef2a2 commit 132056e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ketcher-core/src/application/editor/actions/atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export function fromAtomsAttrs(
// when a heteroatom connects to an aromatic ring it's necessary to add a ImplicitHCount
// property to this atom to specify the number of hydrogens on it.
const atom = restruct.molecule.atoms.get(atomId);
if (atom === null) return;
// assert(atom != null);
if (!atom) return;
assert(atom != null);

if (Atom.isInAromatizedRing(restruct.molecule, atomId)) {
action.addOp(
Expand Down

0 comments on commit 132056e

Please sign in to comment.