From e53cdb5a91b6922020e40936ef7da9004c8c5d5d Mon Sep 17 00:00:00 2001 From: Nikita Chistousov Date: Mon, 9 Dec 2024 16:26:27 +0100 Subject: [PATCH] =?UTF-8?q?#5910=20=E2=80=93=20Fix=20on=20checking=20sgrou?= =?UTF-8?q?ps=20map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ketcher-react/src/script/editor/tool/template.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ketcher-react/src/script/editor/tool/template.ts b/packages/ketcher-react/src/script/editor/tool/template.ts index 7ae440e8e9..1edc57bb37 100644 --- a/packages/ketcher-react/src/script/editor/tool/template.ts +++ b/packages/ketcher-react/src/script/editor/tool/template.ts @@ -251,8 +251,9 @@ class TemplateTool implements Tool { }); if ( - // if point is functional group and it is not expanded - this.closestItem?.map === 'functionalGroups' && + // if point is functional group/sgroup and it is not expanded + (this.closestItem?.map === 'functionalGroups' || + this.closestItem?.map === 'sgroups') && FunctionalGroup.isContractedFunctionalGroup( this.closestItem.id, this.functionalGroups,