Skip to content

Commit

Permalink
Backmerge: #2636 – Unable to contract or expand Unknown Superatoms th…
Browse files Browse the repository at this point in the history
…at are parsed via API in MolV3000, KET, CDX, CDXML, CML, Base64CDX formats (#2641) (#2645)
  • Loading branch information
Nitvex authored May 22, 2023
1 parent c8f9479 commit 8768865
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
FunctionalGroup,
Pile,
Pool,
SGroup,
Struct,
Vec2
} from 'domain/entities'
Expand Down Expand Up @@ -133,7 +134,7 @@ class ReStruct {
if (item.type === 'DAT' && !item.data.attached) {
this.sgroupData.set(id, new ReDataSGroupData(item))
} // [MK] sort of a hack, we use the SGroup id for the data field id
if (FunctionalGroup.isFunctionalGroup(item)) {
if (FunctionalGroup.isFunctionalGroup(item) || SGroup.isSuperAtom(item)) {
this.molecule.functionalGroups.set(id, new FunctionalGroup(item))
}
})
Expand Down

0 comments on commit 8768865

Please sign in to comment.