Skip to content

Commit

Permalink
Backmerge: #2614 – Contracted unknown superatom is parsed as expanded…
Browse files Browse the repository at this point in the history
…, and brackets with name are lost (#2615)
  • Loading branch information
Nitvex committed May 18, 2023
1 parent 08c5f80 commit f5efea8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ketcher-core/src/domain/entities/struct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,10 @@ export class Struct {

bindSGroupsToFunctionalGroups() {
this.sgroups.forEach((sgroup) => {
if (FunctionalGroup.isFunctionalGroup(sgroup)) {
if (
FunctionalGroup.isFunctionalGroup(sgroup) ||
SGroup.isSuperAtom(sgroup)
) {
this.functionalGroups.add(new FunctionalGroup(sgroup))
}
})
Expand Down

0 comments on commit f5efea8

Please sign in to comment.