Skip to content

Commit

Permalink
#5910 – Fix ui test and erasing contracted sgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
svvald committed Dec 11, 2024
1 parent 5654d9b commit 7dde207
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/ketcher-react/src/script/editor/tool/eraser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class EraserTool implements Tool {
} else if (ci.map === 'bonds') {
this.editor.update(fromOneBondDeletion(restruct, ci.id));
} else if (
ci.map === 'functionalGroups' &&
(ci.map === 'sgroups' || ci.map === 'functionalGroups') &&
FunctionalGroup.isContractedFunctionalGroup(ci.id, functionalGroups)
) {
const sGroup = sgroups.get(ci.id);
Expand Down

0 comments on commit 7dde207

Please sign in to comment.