Skip to content

Commit

Permalink
#2086: Dragging a selected s-group sometimes duplicates it
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinEpam23 committed Jan 20, 2023
1 parent a29fb07 commit 2a097b4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/ketcher-react/src/script/editor/tool/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,15 +332,7 @@ class TemplateTool {
let action = null
let pasteItems

if (!ci) {
// ci.type == 'Canvas'
;[action, pasteItems] = fromTemplateOnCanvas(
restruct,
this.template,
pos0,
angle
)
} else if (ci.map === 'atoms') {
if (ci.map === 'atoms') {
;[action, pasteItems] = fromTemplateOnAtom(
restruct,
this.template,
Expand Down

0 comments on commit 2a097b4

Please sign in to comment.