From 2a097b4028e5125cb34758ca69b8885e0e7e9019 Mon Sep 17 00:00:00 2001 From: Konstantin Levin Date: Fri, 20 Jan 2023 10:31:05 +0100 Subject: [PATCH] #2086: Dragging a selected s-group sometimes duplicates it --- .../ketcher-react/src/script/editor/tool/template.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/ketcher-react/src/script/editor/tool/template.ts b/packages/ketcher-react/src/script/editor/tool/template.ts index c9562ac82f..f34de97f6b 100644 --- a/packages/ketcher-react/src/script/editor/tool/template.ts +++ b/packages/ketcher-react/src/script/editor/tool/template.ts @@ -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,