Skip to content

Commit

Permalink
Merge branch 'master' into release/2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMazol committed Nov 15, 2021
2 parents 8d84d9e + 5efa3c3 commit e3348e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AtomDelete extends BaseOperation {
data: Data

constructor(atomId?: any) {
super(OperationType.ATOM_DELETE, 4)
super(OperationType.ATOM_DELETE, 5)
this.data = { aid: atomId, atom: null, pos: null }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class SGroupAtomRemove extends BaseOperation {
data: Data

constructor(sgroupId?: any, aid?: any) {
super(OperationType.S_GROUP_ATOM_REMOVE)
super(OperationType.S_GROUP_ATOM_REMOVE, 4)
this.data = { sgid: sgroupId, aid }
}

Expand Down
2 changes: 1 addition & 1 deletion packages/ketcher-core/src/domain/entities/sgroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class SGroup {
}

static getOffset(sgroup: SGroup): null | Vec2 {
if (!sgroup.pp) return null
if (!sgroup?.pp) return null
return Vec2.diff(sgroup.pp, sgroup.bracketBox.p1)
}

Expand Down

0 comments on commit e3348e1

Please sign in to comment.