From c8ddb843c0700cba69f0c5f89db31deacccd5c94 Mon Sep 17 00:00:00 2001 From: Aliaksei Date: Thu, 19 Oct 2023 11:04:10 +0200 Subject: [PATCH] #3459 - All atom attributes should be displayed as SMARTS if at least one purely SMARTS attribute exists - Fix isotope position in custom Query --- .../ketcher-core/src/application/render/restruct/reatom.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();