diff --git a/packages/ketcher-core/src/application/render/restruct/reatom.ts b/packages/ketcher-core/src/application/render/restruct/reatom.ts index 2b051e85fc..94411bd3dd 100644 --- a/packages/ketcher-core/src/application/render/restruct/reatom.ts +++ b/packages/ketcher-core/src/application/render/restruct/reatom.ts @@ -1275,9 +1275,9 @@ export function getAtomCustomQuery(atom) { chirality: (value) => (value === 'clockwise' ? '@@' : '@'), }; - for (const propertyName in atom) { + for (const propertyName in patterns) { const value = atom[propertyName]; - if (propertyName in patterns && value !== null) { + if (propertyName in atom && value !== null) { const attrText = patterns[propertyName](value, atom); if (attrText) { addSemicolon();