Skip to content

Commit

Permalink
#3459 - All atom attributes should be displayed as SMARTS if at least…
Browse files Browse the repository at this point in the history
… one purely SMARTS attribute exists

- Fix isotope position in custom Query
  • Loading branch information
AKZhuk committed Oct 19, 2023
1 parent e6d5cfa commit c8ddb84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c8ddb84

Please sign in to comment.