Skip to content

Commit

Permalink
#5910 – Fix on checking sgroups map
Browse files Browse the repository at this point in the history
  • Loading branch information
svvald committed Dec 9, 2024
1 parent 52720b0 commit e53cdb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ketcher-react/src/script/editor/tool/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e53cdb5

Please sign in to comment.